diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-12-17 01:10:07 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-12-17 01:10:07 (GMT) |
commit | e1111688bba1abbc24762b2a96d79fcd86599fa7 (patch) | |
tree | a8873bded422577dbe304765b06c4116ddaacbc2 /src/declarative/graphicsitems/qmlgraphicstext_p_p.h | |
parent | 152b06c18bf0ca5ae8607efabcb0db29eb81c78b (diff) | |
download | Qt-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.h | 6 |
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(); |