diff options
author | Bea Lam <bea.lam@nokia.com> | 2011-01-27 05:53:45 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2011-01-27 06:23:53 (GMT) |
commit | 80f74d3801ddece4d34b4a663bf1bdc23ecc4a67 (patch) | |
tree | 1777c3533e520dabd7a2635e3ef020f492a6684a /src/declarative/graphicsitems/qdeclarativeloader_p_p.h | |
parent | 43b8305367156c1ceb09eb4a056bdae3f325b5eb (diff) | |
download | Qt-80f74d3801ddece4d34b4a663bf1bdc23ecc4a67.zip Qt-80f74d3801ddece4d34b4a663bf1bdc23ecc4a67.tar.gz Qt-80f74d3801ddece4d34b4a663bf1bdc23ecc4a67.tar.bz2 |
Don't load components until the Loader component itself is completed
Previously components were loaded as soon as setSource() or
setSourceComponent() were called, even if the Loader component was not
complete. If a source component had been set, the itemChanged(),
statusChanged() etc. signals would be emitted before the Loader would
be complete and before the internal item had been sized. If a source
had been set via url, these signals were not emitted at all. It also
caused loaded() to be emitted twice for components set by
setSourceComponent().
Task-number: QTBUG-16319
Reviewed-by: Martin Jones
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativeloader_p_p.h')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativeloader_p_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeloader_p_p.h b/src/declarative/graphicsitems/qdeclarativeloader_p_p.h index 2239b16..e366a14 100644 --- a/src/declarative/graphicsitems/qdeclarativeloader_p_p.h +++ b/src/declarative/graphicsitems/qdeclarativeloader_p_p.h @@ -72,6 +72,7 @@ public: void itemGeometryChanged(QDeclarativeItem *item, const QRectF &newGeometry, const QRectF &oldGeometry); void clear(); void initResize(); + void load(); QUrl source; QGraphicsObject *item; |