summaryrefslogtreecommitdiffstats
path: root/doc/src
diff options
context:
space:
mode:
authorDavid Boddie <dboddie@trolltech.com>2010-05-21 17:31:35 (GMT)
committerDavid Boddie <dboddie@trolltech.com>2010-05-21 17:31:35 (GMT)
commitfdd148290f19b6a4ae547d8ee51350ba5d4b629c (patch)
tree511883790724322cdfa6d5982f9b7f05f7b426a9 /doc/src
parent30861cff0c9beac6028c4a6b64fe9b4c58890e76 (diff)
parent1a0c51ffed4f7d86620b00adc3e22d044deef0c0 (diff)
downloadQt-fdd148290f19b6a4ae547d8ee51350ba5d4b629c.zip
Qt-fdd148290f19b6a4ae547d8ee51350ba5d4b629c.tar.gz
Qt-fdd148290f19b6a4ae547d8ee51350ba5d4b629c.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into 4.7
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/snippets/code/src_gui_graphicsview_qgraphicsitem.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/src/snippets/code/src_gui_graphicsview_qgraphicsitem.cpp b/doc/src/snippets/code/src_gui_graphicsview_qgraphicsitem.cpp
index 4f27661..81099a7 100644
--- a/doc/src/snippets/code/src_gui_graphicsview_qgraphicsitem.cpp
+++ b/doc/src/snippets/code/src_gui_graphicsview_qgraphicsitem.cpp
@@ -271,3 +271,9 @@ class QGraphicsPathItem : public QAbstractGraphicsShapeItem
};
//! [18]
+//! [19]
+QTransform xform = item->deviceTransform(view->viewportTransform());
+QRect deviceRect = xform.mapRect(rect).toAlignedRect();
+view->viewport()->scroll(dx, dy, deviceRect);
+//! [19]
+