diff options
author | David Boddie <dboddie@trolltech.com> | 2009-08-27 13:12:52 (GMT) |
---|---|---|
committer | David Boddie <dboddie@trolltech.com> | 2009-08-27 13:12:52 (GMT) |
commit | bb76203895a8a33bc76a4e4662492d1100c8b4fd (patch) | |
tree | 55d83095f5ac71b5d3c13c991d723be00be89559 /src/gui/painting | |
parent | 6f9e2fb5cb496b826cb41a8127dd57e58d6c5103 (diff) | |
download | Qt-bb76203895a8a33bc76a4e4662492d1100c8b4fd.zip Qt-bb76203895a8a33bc76a4e4662492d1100c8b4fd.tar.gz Qt-bb76203895a8a33bc76a4e4662492d1100c8b4fd.tar.bz2 |
Doc: Fixed recommended code as suggested in the public task.
Task-number: 155124
Reviewed-by: Trust Me
Diffstat (limited to 'src/gui/painting')
-rw-r--r-- | src/gui/painting/qpainter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/painting/qpainter.cpp b/src/gui/painting/qpainter.cpp index cba4ad9..699de4d 100644 --- a/src/gui/painting/qpainter.cpp +++ b/src/gui/painting/qpainter.cpp @@ -7208,7 +7208,8 @@ QPoint QPainter::xFormDev(const QPoint &p) const QRect transformed = painter.xFormDev(rectangle); \newcode QPainter painter(this); - QRect transformed = painter.combinedTransform().inverted(rectangle); + QRegion region = QRegion(rectangle) * painter.combinedTransform().inverted(); + QRect transformed = region.boundingRect(); \endcode */ |