summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpainter.cpp
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2009-04-03 09:16:40 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2009-04-07 06:30:14 (GMT)
commit974680679b03c668ffce87bd50b5dacf44b0fa22 (patch)
tree7a5a67e562e9657e12f59b62584e4ac7ecb06943 /src/gui/painting/qpainter.cpp
parente0560bcaa3703fafccc21dd709731341a123a0e4 (diff)
downloadQt-974680679b03c668ffce87bd50b5dacf44b0fa22.zip
Qt-974680679b03c668ffce87bd50b5dacf44b0fa22.tar.gz
Qt-974680679b03c668ffce87bd50b5dacf44b0fa22.tar.bz2
Adds a few \warnings to the docs on do-not-use-for-performance-reasons
Reviewed-by: Trond
Diffstat (limited to 'src/gui/painting/qpainter.cpp')
-rw-r--r--src/gui/painting/qpainter.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/painting/qpainter.cpp b/src/gui/painting/qpainter.cpp
index b2f0ac4..2beb8c2 100644
--- a/src/gui/painting/qpainter.cpp
+++ b/src/gui/painting/qpainter.cpp
@@ -2371,6 +2371,11 @@ void QPainter::setClipping(bool enable)
Returns the currently set clip region. Note that the clip region
is given in logical coordinates.
+ \warning QPainter does not store the combined clip explicitly as
+ this is handled by the underlying QPaintEngine, so the path is
+ recreated on demand and transformed to the current logical
+ coordinate system. This is potentially an expensive operation.
+
\sa setClipRegion(), clipPath(), setClipping()
*/
@@ -2486,6 +2491,11 @@ extern QPainterPath qt_regionToPath(const QRegion &region);
Returns the currently clip as a path. Note that the clip path is
given in logical coordinates.
+ \warning QPainter does not store the combined clip explicitly as
+ this is handled by the underlying QPaintEngine, so the path is
+ recreated on demand and transformed to the current logical
+ coordinate system. This is potentially an expensive operation.
+
\sa setClipPath(), clipRegion(), setClipping()
*/
QPainterPath QPainter::clipPath() const