summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-11-25 01:14:04 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-11-25 01:14:04 (GMT)
commit368aa557ab3cf8a5c241890ff2f21e2b890df114 (patch)
tree5ee01f7ce6cc7c8495d9aa5c6070beeabe50bad4 /src
parent0862302562b27811e3517412d0913dbbf573b646 (diff)
downloadQt-368aa557ab3cf8a5c241890ff2f21e2b890df114.zip
Qt-368aa557ab3cf8a5c241890ff2f21e2b890df114.tar.gz
Qt-368aa557ab3cf8a5c241890ff2f21e2b890df114.tar.bz2
Add NOTIFY signal for Image.pixmap
Diffstat (limited to 'src')
-rw-r--r--src/declarative/graphicsitems/qmlgraphicsimage.cpp1
-rw-r--r--src/declarative/graphicsitems/qmlgraphicsimage_p.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qmlgraphicsimage.cpp b/src/declarative/graphicsitems/qmlgraphicsimage.cpp
index 2161ed6..9d59796 100644
--- a/src/declarative/graphicsitems/qmlgraphicsimage.cpp
+++ b/src/declarative/graphicsitems/qmlgraphicsimage.cpp
@@ -173,6 +173,7 @@ void QmlGraphicsImagePrivate::setPixmap(const QPixmap &pixmap)
q->setImplicitHeight(pix.height());
q->update();
+ emit q->pixmapChanged();
}
/*!
diff --git a/src/declarative/graphicsitems/qmlgraphicsimage_p.h b/src/declarative/graphicsitems/qmlgraphicsimage_p.h
index 76b8da5..81e10ab 100644
--- a/src/declarative/graphicsitems/qmlgraphicsimage_p.h
+++ b/src/declarative/graphicsitems/qmlgraphicsimage_p.h
@@ -56,7 +56,7 @@ class Q_DECLARATIVE_EXPORT QmlGraphicsImage : public QmlGraphicsImageBase
Q_OBJECT
Q_ENUMS(FillMode)
- Q_PROPERTY(QPixmap pixmap READ pixmap WRITE setPixmap DESIGNABLE false)
+ Q_PROPERTY(QPixmap pixmap READ pixmap WRITE setPixmap NOTIFY pixmapChanged DESIGNABLE false)
Q_PROPERTY(FillMode fillMode READ fillMode WRITE setFillMode NOTIFY fillModeChanged)
public:
@@ -74,6 +74,7 @@ public:
Q_SIGNALS:
void fillModeChanged();
+ void pixmapChanged();
protected:
QmlGraphicsImage(QmlGraphicsImagePrivate &dd, QmlGraphicsItem *parent);