summaryrefslogtreecommitdiffstats
path: root/examples/painting
diff options
context:
space:
mode:
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>2009-09-24 08:33:39 (GMT)
committerKim Motoyoshi Kalland <kim.kalland@nokia.com>2009-09-24 08:33:39 (GMT)
commit3ec68c8948284437b8591010bbbbe2ea97b8cc46 (patch)
tree1029f8f9c050651f244615fe38e338c7834945f3 /examples/painting
parent40f2c3ffdbcd700ed65b72a8cad1e7ce2c009e68 (diff)
downloadQt-3ec68c8948284437b8591010bbbbe2ea97b8cc46.zip
Qt-3ec68c8948284437b8591010bbbbe2ea97b8cc46.tar.gz
Qt-3ec68c8948284437b8591010bbbbe2ea97b8cc46.tar.bz2
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 0938ff8..76c6469 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);