summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorHenrik Hartz <henrik.hartz@nokia.com>2010-08-11 08:01:59 (GMT)
committerHenrik Hartz <henrik.hartz@nokia.com>2010-08-11 08:01:59 (GMT)
commitebdc597eea6e44b66d6c98d252531af5d0da04f8 (patch)
tree2442dd3fe8384b0e69cd958a2b95d902585d8cbb /src/declarative
parent6feb5b75ce96aeeefee189af003949db8c031519 (diff)
downloadQt-ebdc597eea6e44b66d6c98d252531af5d0da04f8.zip
Qt-ebdc597eea6e44b66d6c98d252531af5d0da04f8.tar.gz
Qt-ebdc597eea6e44b66d6c98d252531af5d0da04f8.tar.bz2
Remember to reset clipping when overriding paint in QDeclarativeItem
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/graphicsitems/qdeclarativeitem.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeitem.cpp b/src/declarative/graphicsitems/qdeclarativeitem.cpp
index 9d782b9..17c094c 100644
--- a/src/declarative/graphicsitems/qdeclarativeitem.cpp
+++ b/src/declarative/graphicsitems/qdeclarativeitem.cpp
@@ -2500,7 +2500,9 @@ QDeclarativeListProperty<QDeclarativeTransition> QDeclarativeItemPrivate::transi
This property holds whether clipping is enabled.
if clipping is enabled, an item will clip its own painting, as well
- as the painting of its children, to its bounding rectangle.
+ as the painting of its children, to its bounding rectangle. If you set
+ clipping during an item's paint operation, remember to re-set it to
+ prevent clipping the rest of your scene.
Non-rectangular clipping regions are not supported for performance reasons.
*/