summaryrefslogtreecommitdiffstats
path: root/src/gui/painting
diff options
context:
space:
mode:
authorAndy Shaw <qt-info@nokia.com>2009-05-11 11:27:43 (GMT)
committerAndy Shaw <qt-info@nokia.com>2009-05-11 11:27:43 (GMT)
commit90cf2f668136f32832405a17f355ab405882a99d (patch)
treebb9c7a6f24426b930d24f97397b85a4b7601f22b /src/gui/painting
parent5299240db14579960358edeebfc72fcef905af13 (diff)
downloadQt-90cf2f668136f32832405a17f355ab405882a99d.zip
Qt-90cf2f668136f32832405a17f355ab405882a99d.tar.gz
Qt-90cf2f668136f32832405a17f355ab405882a99d.tar.bz2
Fixes a code snippet for QPainter::xFormDev()
Reviewed-by: TrustMe
Diffstat (limited to 'src/gui/painting')
-rw-r--r--src/gui/painting/qpainter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/painting/qpainter.cpp b/src/gui/painting/qpainter.cpp
index baa9ce3..cc48d24 100644
--- a/src/gui/painting/qpainter.cpp
+++ b/src/gui/painting/qpainter.cpp
@@ -7159,14 +7159,14 @@ QPoint QPainter::xFormDev(const QPoint &p) const
\fn QRect QPainter::xFormDev(const QRect &rectangle) const
\overload
- Use combineMatrix() combined with QMatrix::inverted() instead.
+ Use mapRect() combined with QMatrix::inverted() instead.
\oldcode
QPainter painter(this);
QRect transformed = painter.xFormDev(rectangle);
\newcode
QPainter painter(this);
- QRect transformed = rectangle * painter.combinedMatrix().inverted();
+ QRect transformed = painter.combinedMatrix().inverted(rectangle);
\endcode
*/