summaryrefslogtreecommitdiffstats
path: root/src/gui/styles/qmacstyle_mac.mm
diff options
context:
space:
mode:
authorMartin Petersson <martin.petersson@nokia.com>2011-03-10 13:15:09 (GMT)
committerMartin Petersson <martin.petersson@nokia.com>2011-03-10 13:15:09 (GMT)
commit4500aa5227f75c3f10f82e5e5b452eb6bee386ae (patch)
tree04d44c3ebcdf9a6e7805fd717a0f7e19aaa6a345 /src/gui/styles/qmacstyle_mac.mm
parent096eed1745d78ae8377f0231871100fd5ba6a78e (diff)
downloadQt-4500aa5227f75c3f10f82e5e5b452eb6bee386ae.zip
Qt-4500aa5227f75c3f10f82e5e5b452eb6bee386ae.tar.gz
Qt-4500aa5227f75c3f10f82e5e5b452eb6bee386ae.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/gui/styles/qmacstyle_mac.mm')
-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 ac05789..f2ad782 100644
--- a/src/gui/styles/qmacstyle_mac.mm
+++ b/src/gui/styles/qmacstyle_mac.mm
@@ -3084,7 +3084,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());