summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativeflipable_p.h
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2011-01-13 03:29:02 (GMT)
committerBea Lam <bea.lam@nokia.com>2011-01-13 03:34:58 (GMT)
commita750cf02225e46063161a1352451d46eb2df5491 (patch)
tree002c6786c1fce41a94f31a80897c67eb0a3465ff /src/declarative/graphicsitems/qdeclarativeflipable_p.h
parent51a09036d2c7fdefa82698d5f096efd604f4e364 (diff)
downloadQt-a750cf02225e46063161a1352451d46eb2df5491.zip
Qt-a750cf02225e46063161a1352451d46eb2df5491.tar.gz
Qt-a750cf02225e46063161a1352451d46eb2df5491.tar.bz2
Add NOTIFY signals to Flipable 'front' and 'back' properties
Although the change notifications themselves may not be that useful, as these properties are write-once, adding the NOTIFY signals allows the properties to be used in bindings. Task-number: QTBUG-16580, QTBUG-14551 Reviewed-by: Martin Jones
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativeflipable_p.h')
-rw-r--r--src/declarative/graphicsitems/qdeclarativeflipable_p.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeflipable_p.h b/src/declarative/graphicsitems/qdeclarativeflipable_p.h
index 78eaf53..b8fa8a4 100644
--- a/src/declarative/graphicsitems/qdeclarativeflipable_p.h
+++ b/src/declarative/graphicsitems/qdeclarativeflipable_p.h
@@ -60,8 +60,8 @@ class Q_AUTOTEST_EXPORT QDeclarativeFlipable : public QDeclarativeItem
Q_OBJECT
Q_ENUMS(Side)
- Q_PROPERTY(QGraphicsObject *front READ front WRITE setFront)
- Q_PROPERTY(QGraphicsObject *back READ back WRITE setBack)
+ Q_PROPERTY(QGraphicsObject *front READ front WRITE setFront NOTIFY frontChanged)
+ Q_PROPERTY(QGraphicsObject *back READ back WRITE setBack NOTIFY backChanged)
Q_PROPERTY(Side side READ side NOTIFY sideChanged)
//### flipAxis
//### flipRotation
@@ -79,6 +79,8 @@ public:
Side side() const;
Q_SIGNALS:
+ void frontChanged();
+ void backChanged();
void sideChanged();
private Q_SLOTS: