summaryrefslogtreecommitdiffstats
path: root/src/widgets/styles/qfusionstyle_p_p.h
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@petroules.com>2013-05-08 08:25:15 -0400
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-05-09 12:17:59 +0200
commitf7eea69a2a322e156594cf5608bbbb97b4d364c1 (patch)
treef435a8e2fd345109575b66b52b8ef2bd422edb46 /src/widgets/styles/qfusionstyle_p_p.h
parentbf10f2be19640bc398cd38b1fefcf58d4dcecd68 (diff)
Utilize the new Q_OS_MACX define.
All occurrences of `#if defined(Q_OS_MAC) && !defined(Q_OS_IOS)` have been replaced with `#if defined(Q_OS_MACX)`. Change-Id: I5055d9bd1845136beb8ed1c79a8f0f2c0897751a Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/widgets/styles/qfusionstyle_p_p.h')
-rw-r--r--src/widgets/styles/qfusionstyle_p_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/styles/qfusionstyle_p_p.h b/src/widgets/styles/qfusionstyle_p_p.h
index acdf409dbf..4af4f18798 100644
--- a/src/widgets/styles/qfusionstyle_p_p.h
+++ b/src/widgets/styles/qfusionstyle_p_p.h
@@ -88,7 +88,7 @@ public:
// On mac we want a standard blue color used when the system palette is used
bool isMacSystemPalette(const QPalette &pal) const {
Q_UNUSED(pal);
-#if defined(Q_OS_MAC) && !defined(Q_OS_IOS)
+#if defined(Q_OS_MACX)
const QPalette *themePalette = QGuiApplicationPrivate::platformTheme()->palette();
if (themePalette && themePalette->color(QPalette::Normal, QPalette::Highlight) ==
pal.color(QPalette::Normal, QPalette::Highlight) &&