diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-04-08 05:07:54 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-04-08 05:07:54 (GMT) |
commit | 9fd2d52881356fb214213f139a2f25081fc848e4 (patch) | |
tree | 41902768ff80a3ba81df3fe75cf25a12bd241822 /src/declarative/graphicsitems/qdeclarativeanimatedimage_p.h | |
parent | 31ec693cd6ae4cf5a2533092f45ba9bb154ba152 (diff) | |
download | Qt-9fd2d52881356fb214213f139a2f25081fc848e4.zip Qt-9fd2d52881356fb214213f139a2f25081fc848e4.tar.gz Qt-9fd2d52881356fb214213f139a2f25081fc848e4.tar.bz2 |
Fix AnimatedImage for remote image test. Fix and test sourceSize property.
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativeanimatedimage_p.h')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativeanimatedimage_p.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeanimatedimage_p.h b/src/declarative/graphicsitems/qdeclarativeanimatedimage_p.h index 6ab66b3..9d8087c 100644 --- a/src/declarative/graphicsitems/qdeclarativeanimatedimage_p.h +++ b/src/declarative/graphicsitems/qdeclarativeanimatedimage_p.h @@ -61,6 +61,10 @@ class Q_DECLARATIVE_EXPORT QDeclarativeAnimatedImage : public QDeclarativeImage Q_PROPERTY(bool paused READ isPaused WRITE setPaused NOTIFY pausedChanged) Q_PROPERTY(int currentFrame READ currentFrame WRITE setCurrentFrame NOTIFY frameChanged) Q_PROPERTY(int frameCount READ frameCount) + + // read-only for AnimatedImage + Q_PROPERTY(QSize sourceSize READ sourceSize NOTIFY sourceSizeChanged) + public: QDeclarativeAnimatedImage(QDeclarativeItem *parent=0); ~QDeclarativeAnimatedImage(); @@ -83,6 +87,7 @@ Q_SIGNALS: void playingChanged(); void pausedChanged(); void frameChanged(); + void sourceSizeChanged(); private Q_SLOTS: void movieUpdate(); |