summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorJens Bache-Wiig <jens.bache-wiig@digia.com>2012-11-25 08:10:25 -0800
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-25 18:08:07 +0100
commit3aa55d5a252673474c14ce7b8c12711f6624c550 (patch)
tree4894141097f0e4e9414a19c59f8cdab9a51b04ea /src/widgets
parent50badb1bd6249c379a2c1050ebefe63bde534431 (diff)
Fix color issue with sliders on Fusion style
We should not directly use the palette as it looks weird on mac. Change-Id: I2062bd43a8b28875330d9f8cc0eaa4069f3a43f6 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/styles/qfusionstyle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/styles/qfusionstyle.cpp b/src/widgets/styles/qfusionstyle.cpp
index a480393ca1..e2b5227b75 100644
--- a/src/widgets/styles/qfusionstyle.cpp
+++ b/src/widgets/styles/qfusionstyle.cpp
@@ -2696,7 +2696,7 @@ void QFusionStyle::drawComplexControl(ComplexControl control, const QStyleOption
bool horizontal = slider->orientation == Qt::Horizontal;
bool ticksAbove = slider->tickPosition & QSlider::TicksAbove;
bool ticksBelow = slider->tickPosition & QSlider::TicksBelow;
- QColor activeHighlight = option->palette.color(QPalette::Normal, QPalette::Highlight);
+ QColor activeHighlight = d->highlight(option->palette);
QPixmap cache;
QBrush oldBrush = painter->brush();
QPen oldPen = painter->pen();