path: root/src/widgets
diff options
authorJ-P Nurmi <>2012-12-13 13:16:42 +0100
committerThe Qt Project <>2012-12-13 19:51:28 +0100
commit0b0b74a563d1513e7857000526d5c0fa462ff6af (patch)
tree5c9e80d87c9d84e137a11b41a6b541f393945171 /src/widgets
parent7b507c581ccf345efcb3ba9c757d8d06bb5e4349 (diff)
Fix QGtkPainter::reset() to reset the clip rect
Due to preparation for GTK3 support, QGtkStyle::drawXxx() no longer creates a local instance of QGtkPainter upon every call, but QGtkStylePrivate::gtkPainter() will (in the future) dynamically choose between QGtk[2|3]Painter. The same painter instance is now re-used between the calls, but wasn't properly reseted between. Task-number: QTBUG-28557 Change-Id: I29be318dbb54d97ed23dfb88d406a3a833db4369 Reviewed-by: Jens Bache-Wiig <>
Diffstat (limited to 'src/widgets')
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/styles/qgtkpainter.cpp b/src/widgets/styles/qgtkpainter.cpp
index a5c408f20d..206dbf7e0f 100644
--- a/src/widgets/styles/qgtkpainter.cpp
+++ b/src/widgets/styles/qgtkpainter.cpp
@@ -63,6 +63,7 @@ void QGtkPainter::reset(QPainter *painter)
m_hflipped = false;
m_vflipped = false;
m_usePixmapCache = true;
+ m_cliprect = QRect();
QString QGtkPainter::uniqueName(const QString &key, GtkStateType state, GtkShadowType shadow,