From bb76203895a8a33bc76a4e4662492d1100c8b4fd Mon Sep 17 00:00:00 2001 From: David Boddie Date: Thu, 27 Aug 2009 15:12:52 +0200 Subject: Doc: Fixed recommended code as suggested in the public task. Task-number: 155124 Reviewed-by: Trust Me --- src/gui/painting/qpainter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 */ -- cgit v0.12