summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qtransform.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@nokia.com>2009-07-28 22:27:52 (GMT)
committerVolker Hilsheimer <volker.hilsheimer@nokia.com>2009-07-28 22:27:52 (GMT)
commitca1060fbc3a949ec3e0f67017efe8ee6c0b7b86e (patch)
treec435ab0dfb5c4ca9b70ab3343eaabe2f4ca1d1e8 /src/gui/painting/qtransform.cpp
parentd0e8341c9a1549dcf1625381a3681d1dca73e945 (diff)
downloadQt-ca1060fbc3a949ec3e0f67017efe8ee6c0b7b86e.zip
Qt-ca1060fbc3a949ec3e0f67017efe8ee6c0b7b86e.tar.gz
Qt-ca1060fbc3a949ec3e0f67017efe8ee6c0b7b86e.tar.bz2
Doc: Some final QMatrix cleanups.
Diffstat (limited to 'src/gui/painting/qtransform.cpp')
-rw-r--r--src/gui/painting/qtransform.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/painting/qtransform.cpp b/src/gui/painting/qtransform.cpp
index 8a9d6f1..a322fe4 100644
--- a/src/gui/painting/qtransform.cpp
+++ b/src/gui/painting/qtransform.cpp
@@ -1775,7 +1775,7 @@ bool QTransform::quadToQuad(const QPolygonF &one,
Sets the matrix elements to the specified values, \a m11,
\a m12, \a m13 \a m21, \a m22, \a m23 \a m31, \a m32 and
\a m33. Note that this function replaces the previous values.
- QMatrix provides the translate(), rotate(), scale() and shear()
+ QTransform provides the translate(), rotate(), scale() and shear()
convenience functions to manipulate the various matrix elements
based on the currently defined coordinate system.
@@ -1953,8 +1953,11 @@ void QTransform::map(int x, int y, int *tx, int *ty) const
}
/*!
- Returns the QTransform cast to a QMatrix.
- */
+ Returns the QTransform as an affine matrix.
+
+ \warning If a perspective transformation has been specified,
+ then the conversion will cause loss of data.
+*/
const QMatrix &QTransform::toAffine() const
{
return affine;