summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativeimagebase_p_p.h
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2010-03-08 02:28:32 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2010-03-08 02:32:41 (GMT)
commit4ffb2a7a27ef5f06672e5f668e46d1657fa3e7ca (patch)
treefae95703c8451d7674c735ba926aec151fabaa8e /src/declarative/graphicsitems/qdeclarativeimagebase_p_p.h
parent23440d84ddf78755e77cea75956cd7445647230a (diff)
downloadQt-4ffb2a7a27ef5f06672e5f668e46d1657fa3e7ca.zip
Qt-4ffb2a7a27ef5f06672e5f668e46d1657fa3e7ca.tar.gz
Qt-4ffb2a7a27ef5f06672e5f668e46d1657fa3e7ca.tar.bz2
Optimize Rectangle, Image, and Text creation.
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativeimagebase_p_p.h')
-rw-r--r--src/declarative/graphicsitems/qdeclarativeimagebase_p_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeimagebase_p_p.h b/src/declarative/graphicsitems/qdeclarativeimagebase_p_p.h
index 2e062a8..c4a61f3 100644
--- a/src/declarative/graphicsitems/qdeclarativeimagebase_p_p.h
+++ b/src/declarative/graphicsitems/qdeclarativeimagebase_p_p.h
@@ -71,6 +71,7 @@ public:
pendingPixmapCache(false),
async(false)
{
+ QGraphicsItemPrivate::flags = QGraphicsItemPrivate::flags & ~QGraphicsItem::ItemHasNoContents;
}
QPixmap pix;