summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qtransform.h
diff options
context:
space:
mode:
authorBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-06-18 11:28:01 (GMT)
committerBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-06-18 13:02:01 (GMT)
commit450a9c97aba21db04df4af281312e4262529691a (patch)
tree392d2dbad27c91a20acdf349ce1e0b518a063b2f /src/gui/painting/qtransform.h
parentcc4935dc0641336813925b3892ffd6695d709d19 (diff)
downloadQt-450a9c97aba21db04df4af281312e4262529691a.zip
Qt-450a9c97aba21db04df4af281312e4262529691a.tar.gz
Qt-450a9c97aba21db04df4af281312e4262529691a.tar.bz2
Make construction of unitialized QTransform/QMatrix a no-op.
These constructors are useful when you have to create a temporary uninitialized QTransform/QMatrix and later initialize it to something else. Done with Lars. Reviewed-by: samuel
Diffstat (limited to 'src/gui/painting/qtransform.h')
-rw-r--r--src/gui/painting/qtransform.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/painting/qtransform.h b/src/gui/painting/qtransform.h
index bb04f7b..f99b0e7 100644
--- a/src/gui/painting/qtransform.h
+++ b/src/gui/painting/qtransform.h
@@ -71,6 +71,7 @@ public:
TxProject = 0x10
};
+ inline explicit QTransform(enum Qt::Uninitialized) : affine(Qt::Uninitialized) {}
QTransform();
QTransform(qreal h11, qreal h12, qreal h13,
qreal h21, qreal h22, qreal h23,