diff options
| author | fanquake <[email protected]> | 2018-07-09 10:05:00 +0800 |
|---|---|---|
| committer | fanquake <[email protected]> | 2018-07-25 07:30:28 +0800 |
| commit | fa6e841e89d164850dcfb6efe5b03992594c1ca3 (patch) | |
| tree | cbb3b60c73632331a148bbb38e494979201ff1a4 /src | |
| parent | gui: remove SubstituteFonts (diff) | |
| download | discoin-fa6e841e89d164850dcfb6efe5b03992594c1ca3.tar.xz discoin-fa6e841e89d164850dcfb6efe5b03992594c1ca3.zip | |
gui: remove macOS ProgressBar workaround
Diffstat (limited to 'src')
| -rw-r--r-- | src/qt/guiutil.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/qt/guiutil.h b/src/qt/guiutil.h index 651b96e3f..199aa9474 100644 --- a/src/qt/guiutil.h +++ b/src/qt/guiutil.h @@ -230,19 +230,7 @@ namespace GUIUtil void mouseReleaseEvent(QMouseEvent *event); }; -#if defined(Q_OS_MAC) - // workaround for Qt OSX Bug: - // https://bugreports.qt-project.org/browse/QTBUG-15631 - // QProgressBar uses around 10% CPU even when app is in background - class ProgressBar : public ClickableProgressBar - { - bool event(QEvent *e) { - return (e->type() != QEvent::StyleAnimationUpdate) ? QProgressBar::event(e) : false; - } - }; -#else typedef ClickableProgressBar ProgressBar; -#endif } // namespace GUIUtil |