aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/fusion/qquickfusionstyle.cpp
diff options
context:
space:
mode:
authorQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-02-02 03:03:32 +0100
committerQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-02-02 03:03:32 +0100
commit3afec43b69991753416380d88e22b5382b8b0832 (patch)
tree15f14aa78ba2a9cc8c118665318e9e5b77282d8b /src/imports/controls/fusion/qquickfusionstyle.cpp
parent1a89fbc5a8e9fe6b2711c2e87e9909201c26d499 (diff)
parent09181d8b61cf3c84c88258586d68bd721d440620 (diff)
Merge remote-tracking branch 'origin/5.12' into 5.13v5.13.0-alpha1
Diffstat (limited to 'src/imports/controls/fusion/qquickfusionstyle.cpp')
-rw-r--r--src/imports/controls/fusion/qquickfusionstyle.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/imports/controls/fusion/qquickfusionstyle.cpp b/src/imports/controls/fusion/qquickfusionstyle.cpp
index cb3889c8..98c1894f 100644
--- a/src/imports/controls/fusion/qquickfusionstyle.cpp
+++ b/src/imports/controls/fusion/qquickfusionstyle.cpp
@@ -43,21 +43,6 @@
QT_BEGIN_NAMESPACE
-// On mac we want a standard blue color used when the system palette is used
-static bool isMacSystemPalette(const QPalette &palette)
-{
- Q_UNUSED(palette);
-#if defined(Q_OS_MACOS)
- const QPalette *themePalette = QGuiApplicationPrivate::platformTheme()->palette();
- if (themePalette && themePalette->color(QPalette::Normal, QPalette::Highlight) ==
- palette.color(QPalette::Normal, QPalette::Highlight) &&
- themePalette->color(QPalette::Normal, QPalette::HighlightedText) ==
- palette.color(QPalette::Normal, QPalette::HighlightedText))
- return true;
-#endif
- return false;
-}
-
QQuickFusionStyle::QQuickFusionStyle(QObject *parent)
: QObject(parent)
{
@@ -90,8 +75,6 @@ QColor QQuickFusionStyle::highlight(const QPalette &palette)
QColor QQuickFusionStyle::highlightedText(const QPalette &palette)
{
- if (isMacSystemPalette(palette))
- return Qt::white;
return palette.color(QPalette::HighlightedText);
}