diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-11-25 05:26:41 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-11-25 05:26:41 (GMT) |
commit | ad543e4edbe69c7111542e5c57f7470e9499cffc (patch) | |
tree | c90cfdf3d21bf901c51ccafae0e4b74fdd55c56a /src/declarative/graphicsitems | |
parent | 120433c1eac10ba431204a0cfa464bcbfe41a07d (diff) | |
download | Qt-ad543e4edbe69c7111542e5c57f7470e9499cffc.zip Qt-ad543e4edbe69c7111542e5c57f7470e9499cffc.tar.gz Qt-ad543e4edbe69c7111542e5c57f7470e9499cffc.tar.bz2 |
Notify of any change to pixmap property.
Diffstat (limited to 'src/declarative/graphicsitems')
-rw-r--r-- | src/declarative/graphicsitems/qmlgraphicsimage_p.h | 1 | ||||
-rw-r--r-- | src/declarative/graphicsitems/qmlgraphicsimagebase.cpp | 3 | ||||
-rw-r--r-- | src/declarative/graphicsitems/qmlgraphicsimagebase_p.h | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qmlgraphicsimage_p.h b/src/declarative/graphicsitems/qmlgraphicsimage_p.h index 81e10ab..47cdcd6 100644 --- a/src/declarative/graphicsitems/qmlgraphicsimage_p.h +++ b/src/declarative/graphicsitems/qmlgraphicsimage_p.h @@ -74,7 +74,6 @@ public: Q_SIGNALS: void fillModeChanged(); - void pixmapChanged(); protected: QmlGraphicsImage(QmlGraphicsImagePrivate &dd, QmlGraphicsItem *parent); diff --git a/src/declarative/graphicsitems/qmlgraphicsimagebase.cpp b/src/declarative/graphicsitems/qmlgraphicsimagebase.cpp index 6cd1c05..8374c9f 100644 --- a/src/declarative/graphicsitems/qmlgraphicsimagebase.cpp +++ b/src/declarative/graphicsitems/qmlgraphicsimagebase.cpp @@ -106,6 +106,7 @@ void QmlGraphicsImageBase::setSource(const QUrl &url) setImplicitHeight(0); emit statusChanged(d->status); emit sourceChanged(d->url); + emit pixmapChanged(); update(); } else { d->status = Loading; @@ -131,6 +132,7 @@ void QmlGraphicsImageBase::setSource(const QUrl &url) emit statusChanged(d->status); emit sourceChanged(d->url); emit progressChanged(d->progress); + emit pixmapChanged(); update(); } } @@ -155,6 +157,7 @@ void QmlGraphicsImageBase::requestFinished() emit statusChanged(d->status); emit sourceChanged(d->url); emit progressChanged(1.0); + emit pixmapChanged(); update(); } diff --git a/src/declarative/graphicsitems/qmlgraphicsimagebase_p.h b/src/declarative/graphicsitems/qmlgraphicsimagebase_p.h index bab93b7..4936794 100644 --- a/src/declarative/graphicsitems/qmlgraphicsimagebase_p.h +++ b/src/declarative/graphicsitems/qmlgraphicsimagebase_p.h @@ -71,6 +71,7 @@ Q_SIGNALS: void sourceChanged(const QUrl &); void statusChanged(Status); void progressChanged(qreal progress); + void pixmapChanged(); protected: QmlGraphicsImageBase(QmlGraphicsImageBasePrivate &dd, QmlGraphicsItem *parent); |