Skip to content

Commit fa6e841

Browse files
committed
gui: remove macOS ProgressBar workaround
1 parent 68c2725 commit fa6e841

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/qt/guiutil.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -230,19 +230,7 @@ namespace GUIUtil
230230
void mouseReleaseEvent(QMouseEvent *event);
231231
};
232232

233-
#if defined(Q_OS_MAC)
234-
// workaround for Qt OSX Bug:
235-
// https://bugreports.qt-project.org/browse/QTBUG-15631
236-
// QProgressBar uses around 10% CPU even when app is in background
237-
class ProgressBar : public ClickableProgressBar
238-
{
239-
bool event(QEvent *e) {
240-
return (e->type() != QEvent::StyleAnimationUpdate) ? QProgressBar::event(e) : false;
241-
}
242-
};
243-
#else
244233
typedef ClickableProgressBar ProgressBar;
245-
#endif
246234

247235
} // namespace GUIUtil
248236

0 commit comments

Comments
 (0)