Skip to content

Commit 7467c9f

Browse files
fanquakefurszy
authored andcommitted
gui: remove macOS ProgressBar workaround
1 parent c7575ac commit 7467c9f

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/qt/guiutil.h

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -197,19 +197,7 @@ QString formatPingTime(double dPingTime);
197197
/* Format a CNodeCombinedStats.nTimeOffset into a user-readable string. */
198198
QString formatTimeOffset(int64_t nTimeOffset);
199199

200-
#if defined(Q_OS_MAC)
201-
// workaround for Qt OSX Bug:
202-
// https://bugreports.qt-project.org/browse/QTBUG-15631
203-
// QProgressBar uses around 10% CPU even when app is in background
204-
class ProgressBar : public QProgressBar
205-
{
206-
bool event(QEvent *e) {
207-
return (e->type() != QEvent::StyleAnimationUpdate) ? QProgressBar::event(e) : false;
208-
}
209-
};
210-
#else
211-
typedef QProgressBar ProgressBar;
212-
#endif
200+
typedef QProgressBar ProgressBar;
213201

214202
/**
215203
* Splits the string into substrings wherever separator occurs, and returns

0 commit comments

Comments
 (0)