summaryrefslogtreecommitdiffstats
path: root/examples/painting
diff options
context:
space:
mode:
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>2009-09-24 10:33:39 +0200
committerKim Motoyoshi Kalland <kim.kalland@nokia.com>2009-09-24 10:33:39 +0200
commit3ec68c8948284437b8591010bbbbe2ea97b8cc46 (patch)
tree1029f8f9c050651f244615fe38e338c7834945f3 /examples/painting
parent40f2c3ffdbcd700ed65b72a8cad1e7ce2c009e68 (diff)
Fixed background scrolling in the SVG viewer example.
Reviewed-by: Trond
Diffstat (limited to 'examples/painting')
-rw-r--r--examples/painting/svgviewer/svgview.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/painting/svgviewer/svgview.cpp b/examples/painting/svgviewer/svgview.cpp
index 0938ff8b23..76c6469d5d 100644
--- a/examples/painting/svgviewer/svgview.cpp
+++ b/examples/painting/svgviewer/svgview.cpp
@@ -62,6 +62,7 @@ SvgView::SvgView(QWidget *parent)
setScene(new QGraphicsScene(this));
setTransformationAnchor(AnchorUnderMouse);
setDragMode(ScrollHandDrag);
+ setViewportUpdateMode(FullViewportUpdate);
// Prepare background check-board pattern
QPixmap tilePixmap(64, 64);