diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-04-20 10:05:39 +1000 |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-04-20 10:05:39 +1000 |
commit | 1b80a6bc28cb49b9f6e1a2132d929819924aa604 (patch) | |
tree | d0de1b7639a4b9259af5b97488e339f604f83e46 /src/declarative/graphicsitems/qdeclarativeloader_p.h | |
parent | 18cbadd8edd233b843d04441a05788264da0a67b (diff) | |
download | qt4-tools-1b80a6bc28cb49b9f6e1a2132d929819924aa604.tar.gz |
Allow Loader sourceComponent to be set to undefeined.
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativeloader_p.h')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativeloader_p.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeloader_p.h b/src/declarative/graphicsitems/qdeclarativeloader_p.h index 65538a8d8b..e9fd8e9502 100644 --- a/src/declarative/graphicsitems/qdeclarativeloader_p.h +++ b/src/declarative/graphicsitems/qdeclarativeloader_p.h @@ -58,7 +58,7 @@ class Q_DECLARATIVE_EXPORT QDeclarativeLoader : public QDeclarativeItem Q_ENUMS(ResizeMode) Q_PROPERTY(QUrl source READ source WRITE setSource NOTIFY sourceChanged) - Q_PROPERTY(QDeclarativeComponent *sourceComponent READ sourceComponent WRITE setSourceComponent NOTIFY sourceChanged) + Q_PROPERTY(QDeclarativeComponent *sourceComponent READ sourceComponent WRITE setSourceComponent RESET resetSourceComponent NOTIFY sourceChanged) Q_PROPERTY(ResizeMode resizeMode READ resizeMode WRITE setResizeMode NOTIFY resizeModeChanged) Q_PROPERTY(QGraphicsObject *item READ item NOTIFY itemChanged) Q_PROPERTY(Status status READ status NOTIFY statusChanged) @@ -73,6 +73,7 @@ public: QDeclarativeComponent *sourceComponent() const; void setSourceComponent(QDeclarativeComponent *); + void resetSourceComponent(); enum Status { Null, Ready, Loading, Error }; Status status() const; |