summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qmlgraphicstext_p_p.h
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-12-17 01:10:07 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-12-17 01:10:07 (GMT)
commite1111688bba1abbc24762b2a96d79fcd86599fa7 (patch)
treea8873bded422577dbe304765b06c4116ddaacbc2 /src/declarative/graphicsitems/qmlgraphicstext_p_p.h
parent152b06c18bf0ca5ae8607efabcb0db29eb81c78b (diff)
downloadQt-e1111688bba1abbc24762b2a96d79fcd86599fa7.zip
Qt-e1111688bba1abbc24762b2a96d79fcd86599fa7.tar.gz
Qt-e1111688bba1abbc24762b2a96d79fcd86599fa7.tar.bz2
Avoid calling qgi::update() until after component complete
Diffstat (limited to 'src/declarative/graphicsitems/qmlgraphicstext_p_p.h')
-rw-r--r--src/declarative/graphicsitems/qmlgraphicstext_p_p.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qmlgraphicstext_p_p.h b/src/declarative/graphicsitems/qmlgraphicstext_p_p.h
index 6fbee50..7e77c69 100644
--- a/src/declarative/graphicsitems/qmlgraphicstext_p_p.h
+++ b/src/declarative/graphicsitems/qmlgraphicstext_p_p.h
@@ -81,6 +81,12 @@ public:
~QmlGraphicsTextPrivate();
void updateSize();
+ void markImgDirty() {
+ Q_Q(QmlGraphicsText);
+ imgDirty = true;
+ if (q->isComponentComplete())
+ q->update();
+ }
void checkImgCache();
void drawOutline();