summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qabstractscrollarea.cpp
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2009-05-18 13:25:43 (GMT)
committerBradley T. Hughes <bradley.hughes@nokia.com>2009-05-18 13:25:43 (GMT)
commit86edc526684d80e405bcd1c63b5a314b70408679 (patch)
treedfe6a3e989d4468d852019d00f062c4b8d48d036 /src/gui/widgets/qabstractscrollarea.cpp
parent5c42e4328cc2bea53dc4d31eb3f4d10d42ac6ee1 (diff)
parent7e4d4474d10cb17047d95e3a4820388468c74507 (diff)
downloadQt-86edc526684d80e405bcd1c63b5a314b70408679.zip
Qt-86edc526684d80e405bcd1c63b5a314b70408679.tar.gz
Qt-86edc526684d80e405bcd1c63b5a314b70408679.tar.bz2
Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt
Diffstat (limited to 'src/gui/widgets/qabstractscrollarea.cpp')
-rw-r--r--src/gui/widgets/qabstractscrollarea.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/widgets/qabstractscrollarea.cpp b/src/gui/widgets/qabstractscrollarea.cpp
index 190dbb5..b91e3dd 100644
--- a/src/gui/widgets/qabstractscrollarea.cpp
+++ b/src/gui/widgets/qabstractscrollarea.cpp
@@ -873,21 +873,22 @@ bool QAbstractScrollArea::event(QEvent *e)
case QEvent::Resize:
d->layoutChildren();
break;
- case QEvent::Paint:
+ case QEvent::Paint: {
+ QStyleOption option;
+ option.initFrom(this);
if (d->cornerPaintingRect.isValid()) {
- QStyleOption option;
option.rect = d->cornerPaintingRect;
QPainter p(this);
style()->drawPrimitive(QStyle::PE_PanelScrollAreaCorner, &option, &p, this);
}
#ifdef Q_WS_MAC
if (d->reverseCornerPaintingRect.isValid()) {
- QStyleOption option;
option.rect = d->reverseCornerPaintingRect;
QPainter p(this);
style()->drawPrimitive(QStyle::PE_PanelScrollAreaCorner, &option, &p, this);
}
#endif
+ }
QFrame::paintEvent((QPaintEvent*)e);
break;
#ifndef QT_NO_CONTEXTMENU