diff options
author | Bea Lam <bea.lam@nokia.com> | 2011-01-10 02:13:00 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2011-01-10 02:15:39 (GMT) |
commit | 82ff3f484c7ec49e60b7fddf23794937974a6768 (patch) | |
tree | d83bea1b2480fbe6a3d06c258ee6e9d580705dc5 /src/declarative/graphicsitems/qdeclarativeloader_p_p.h | |
parent | 2707cdd482c975e58a4736ac85c32af45435f561 (diff) | |
download | Qt-82ff3f484c7ec49e60b7fddf23794937974a6768.zip Qt-82ff3f484c7ec49e60b7fddf23794937974a6768.tar.gz Qt-82ff3f484c7ec49e60b7fddf23794937974a6768.tar.bz2 |
Fix loaded() signal to be emitted only once
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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeloader_p_p.h b/src/declarative/graphicsitems/qdeclarativeloader_p_p.h index 0d4c4d0..bc65781 100644 --- a/src/declarative/graphicsitems/qdeclarativeloader_p_p.h +++ b/src/declarative/graphicsitems/qdeclarativeloader_p_p.h @@ -72,11 +72,13 @@ public: void itemGeometryChanged(QDeclarativeItem *item, const QRectF &newGeometry, const QRectF &oldGeometry); void clear(); void initResize(); + void load(); QUrl source; QGraphicsObject *item; QDeclarativeComponent *component; bool ownComponent : 1; + bool isComponentComplete : 1; void _q_sourceLoaded(); void _q_updateSize(bool loaderGeometryChanged = true); |