diff options
author | Martin Petersson <martin.petersson@nokia.com> | 2011-03-10 13:15:09 (GMT) |
---|---|---|
committer | Qt Commercial Integration <QtCommercial@digia.com> | 2012-01-31 10:24:48 (GMT) |
commit | 26c43bdbeefc2c135d8d7ece6699cdabac103968 (patch) | |
tree | 1d4569298ddad43f710592f442585909a3277dee | |
parent | 451ec46701553e6516065c0a7a36613f70a10c9b (diff) | |
download | Qt-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
-rw-r--r-- | src/gui/styles/qmacstyle_mac.mm | 2 |
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()); |