diff options
author | Jason Barron <jbarron@trolltech.com> | 2009-07-28 09:34:20 (GMT) |
---|---|---|
committer | Jason Barron <jbarron@trolltech.com> | 2009-07-28 09:34:20 (GMT) |
commit | a20f8dcbeafa34b50ef69d1c5db0f17b09731d2a (patch) | |
tree | 510973b95c107fd08f42423fd04a75e3da0bb5d9 /src/gui/kernel/qwidget.cpp | |
parent | 3643028959f0b38350e57e60ba4000435b75e592 (diff) | |
download | Qt-a20f8dcbeafa34b50ef69d1c5db0f17b09731d2a.zip Qt-a20f8dcbeafa34b50ef69d1c5db0f17b09731d2a.tar.gz Qt-a20f8dcbeafa34b50ef69d1c5db0f17b09731d2a.tar.bz2 |
Compile fixes after latest merge of 4.6.
The ususal suspects like QScopedPointer fixes, but also some changes
since the introduction of qcore_unix.*
Diffstat (limited to 'src/gui/kernel/qwidget.cpp')
-rw-r--r-- | src/gui/kernel/qwidget.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gui/kernel/qwidget.cpp b/src/gui/kernel/qwidget.cpp index 334706d..c2fdadf 100644 --- a/src/gui/kernel/qwidget.cpp +++ b/src/gui/kernel/qwidget.cpp @@ -2051,9 +2051,8 @@ static inline void fillRegion(QPainter *painter, const QRegion &rgn, const QBrus #else #if !defined(QT_NO_STYLE_S60) // Defined in qs60style.cpp - extern bool qt_s60_fill_background(QPainter *painter, const QRegion &rgn, - const QPoint &offset, const QBrush &brush); - if (!qt_s60_fill_background(painter, rgn, offset, brush)) + extern bool qt_s60_fill_background(QPainter *painter, const QRegion &rgn, const QBrush &brush); + if (!qt_s60_fill_background(painter, rgn, brush)) #endif // !defined(QT_NO_STYLE_S60) { const QRect rect(rgn.boundingRect()); @@ -2078,7 +2077,7 @@ void QWidgetPrivate::paintBackground(QPainter *painter, const QRegion &rgn, int //If we are painting the viewport of a scrollarea, we must apply an offset to the brush in case we are drawing a texture QAbstractScrollArea *scrollArea = qobject_cast<QAbstractScrollArea *>(parent); if (scrollArea && scrollArea->viewport() == q) { - QObjectData *scrollPrivate = static_cast<QWidget *>(scrollArea)->d_ptr; + QObjectData *scrollPrivate = static_cast<QWidget *>(scrollArea)->d_ptr.data(); QAbstractScrollAreaPrivate *priv = static_cast<QAbstractScrollAreaPrivate *>(scrollPrivate); oldBrushOrigin = painter->brushOrigin(); resetBrushOrigin = true; |