Skip to content

Commit c5a2282

Browse files
jonasschnellilaanwj
authored andcommitted
[Qt, OSX] fix Qt4.8 compatibility with QProgressBar issue
Rebased-From: 7f33d2cebfde99ded12c711ef6bd77c91725cfb8 Github-Issue: #5344
1 parent f24bcce commit c5a2282

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qt/guiutil.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ namespace GUIUtil
189189
/* Format a CNodeCombinedStats.dPingTime into a user-readable string or display N/A, if 0*/
190190
QString formatPingTime(double dPingTime);
191191

192-
#ifdef Q_OS_MAC
192+
#if defined(Q_OS_MAC) && QT_VERSION >= 0x050000
193193
// workaround for Qt OSX Bug:
194194
// https://bugreports.qt-project.org/browse/QTBUG-15631
195195
// QProgressBar uses around 10% CPU even when app is in background

0 commit comments

Comments
 (0)