diff options
author | Gunnar Sletta <gunnar@trolltech.com> | 2009-04-03 09:16:40 (GMT) |
---|---|---|
committer | Gunnar Sletta <gunnar@trolltech.com> | 2009-04-07 06:30:14 (GMT) |
commit | 974680679b03c668ffce87bd50b5dacf44b0fa22 (patch) | |
tree | 7a5a67e562e9657e12f59b62584e4ac7ecb06943 /src/gui/painting/qpainter.cpp | |
parent | e0560bcaa3703fafccc21dd709731341a123a0e4 (diff) | |
download | Qt-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.cpp | 10 |
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 ®ion); 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 |