summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsview.h
diff options
context:
space:
mode:
authorAndreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>2009-06-03 05:35:06 (GMT)
committerAndreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>2009-06-09 07:32:18 (GMT)
commit8af81877bb11d58099189bfab21d21e3021b7b8b (patch)
treeea17960b08a13715fc86d8be91a6fb847d55d0cc /src/gui/graphicsview/qgraphicsview.h
parent062b7b1280ef228567d16187951fe43e2ac0f78c (diff)
downloadQt-8af81877bb11d58099189bfab21d21e3021b7b8b.zip
Qt-8af81877bb11d58099189bfab21d21e3021b7b8b.tar.gz
Qt-8af81877bb11d58099189bfab21d21e3021b7b8b.tar.bz2
Add QGraphicsView::isTransformed(), and use it to avoid view transforms.
Ensure that we don't ask for or multiply with the view transform if the view is not transformed.
Diffstat (limited to 'src/gui/graphicsview/qgraphicsview.h')
-rw-r--r--src/gui/graphicsview/qgraphicsview.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicsview.h b/src/gui/graphicsview/qgraphicsview.h
index b7a9906..387fa01 100644
--- a/src/gui/graphicsview/qgraphicsview.h
+++ b/src/gui/graphicsview/qgraphicsview.h
@@ -170,6 +170,7 @@ public:
void resetMatrix();
QTransform transform() const;
QTransform viewportTransform() const;
+ bool isTransformed() const;
void setTransform(const QTransform &matrix, bool combine = false);
void resetTransform();
void rotate(qreal angle);