summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Petersson <martin.petersson@nokia.com>2011-03-10 13:15:09 (GMT)
committerQt Commercial Integration <QtCommercial@digia.com>2012-01-31 10:24:48 (GMT)
commit26c43bdbeefc2c135d8d7ece6699cdabac103968 (patch)
tree1d4569298ddad43f710592f442585909a3277dee /src
parent451ec46701553e6516065c0a7a36613f70a10c9b (diff)
downloadQt-26c43bdbeefc2c135d8d7ece6699cdabac103968.zip
Qt-26c43bdbeefc2c135d8d7ece6699cdabac103968.tar.gz
Qt-26c43bdbeefc2c135d8d7ece6699cdabac103968.tar.bz2
Fix corner of scroll area so it is stylable on Mac.
Task-number: QTBUG-13055 Reviewed-by: Olivier Goffart
Diffstat (limited to 'src')
-rw-r--r--src/gui/styles/qmacstyle_mac.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/styles/qmacstyle_mac.mm b/src/gui/styles/qmacstyle_mac.mm
index 5472dac..3645530 100644
--- a/src/gui/styles/qmacstyle_mac.mm
+++ b/src/gui/styles/qmacstyle_mac.mm
@@ -3086,7 +3086,7 @@ void QMacStyle::drawPrimitive(PrimitiveElement pe, const QStyleOption *opt, QPai
}
break;
case PE_PanelScrollAreaCorner: {
- const QBrush brush(qApp->palette().brush(QPalette::Base));
+ const QBrush brush(opt->palette().brush(QPalette::Base));
p->fillRect(opt->rect, brush);
p->setPen(QPen(QColor(217, 217, 217)));
p->drawLine(opt->rect.topLeft(), opt->rect.topRight());