summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwidget_x11.cpp
diff options
context:
space:
mode:
authorBenjamin Poulain <benjamin.poulain@nokia.com>2009-05-28 14:39:48 (GMT)
committerBenjamin Poulain <benjamin.poulain@nokia.com>2009-05-28 14:46:23 (GMT)
commit09ae2f274b417bab4abee8900c5ad0a8f01d65b1 (patch)
tree52230ec6cff739e8d9c1d6f6678178a59710541b /src/gui/kernel/qwidget_x11.cpp
parent408ca46193f70ff66d060f7b7c506a97fee945e2 (diff)
downloadQt-09ae2f274b417bab4abee8900c5ad0a8f01d65b1.zip
Qt-09ae2f274b417bab4abee8900c5ad0a8f01d65b1.tar.gz
Qt-09ae2f274b417bab4abee8900c5ad0a8f01d65b1.tar.bz2
Scroll the dirty region with WA_PaintOnScreen
When QWidget::scroll() is called on a widget with WA_PaintOnScreen, scroll the dirty region. Task-number: 254742 Reviewed-by: bnilsen
Diffstat (limited to 'src/gui/kernel/qwidget_x11.cpp')
-rw-r--r--src/gui/kernel/qwidget_x11.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qwidget_x11.cpp b/src/gui/kernel/qwidget_x11.cpp
index 6202b35..e00c37c 100644
--- a/src/gui/kernel/qwidget_x11.cpp
+++ b/src/gui/kernel/qwidget_x11.cpp
@@ -2487,6 +2487,8 @@ void QWidgetPrivate::scroll_sys(int dx, int dy, const QRect &r)
QRect sr = valid_rect ? r : clipRect();
if (just_update)
q->update();
+ else if (!valid_rect)
+ dirty.translate(dx, dy);
int x1, y1, x2, y2, w = sr.width(), h = sr.height();
if (dx > 0) {