summaryrefslogtreecommitdiffstats
path: root/src/widgets/styles/qfusionstyle_p_p.h
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@digia.com>2013-05-22 18:54:10 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-05-23 09:58:18 +0200
commit7a6c0f0673a239dd84614281f163dd7da1ad1f7a (patch)
tree5c7d57cca0c4a9820ea1330adc776d541490db6d /src/widgets/styles/qfusionstyle_p_p.h
parent23fd348631cdec03736b5cd8bad2d877dddad38f (diff)
QFusionStyle: fix highlight colors
Respect the current color group of the palette, and fix the inactive highlight color. Task-number: QTBUG-30034 Change-Id: Iddfc15a2dd98d4588c6c587b7aaf64d88538fa28 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Diffstat (limited to 'src/widgets/styles/qfusionstyle_p_p.h')
-rw-r--r--src/widgets/styles/qfusionstyle_p_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/styles/qfusionstyle_p_p.h b/src/widgets/styles/qfusionstyle_p_p.h
index 4af4f18798..a76ed24a4a 100644
--- a/src/widgets/styles/qfusionstyle_p_p.h
+++ b/src/widgets/styles/qfusionstyle_p_p.h
@@ -102,13 +102,13 @@ public:
QColor highlight(const QPalette &pal) const {
if (isMacSystemPalette(pal))
return QColor(60, 140, 230);
- return pal.color(QPalette::Active, QPalette::Highlight);
+ return pal.color(QPalette::Highlight);
}
QColor highlightedText(const QPalette &pal) const {
if (isMacSystemPalette(pal))
return Qt::white;
- return pal.color(QPalette::Active, QPalette::HighlightedText);
+ return pal.color(QPalette::HighlightedText);
}
QColor outline(const QPalette &pal) const {