summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativeflipable.cpp
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.cpp
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.cpp')
-rw-r--r--src/declarative/graphicsitems/qdeclarativeflipable.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeflipable.cpp b/src/declarative/graphicsitems/qdeclarativeflipable.cpp
index f118a85..b7c4063 100644
--- a/src/declarative/graphicsitems/qdeclarativeflipable.cpp
+++ b/src/declarative/graphicsitems/qdeclarativeflipable.cpp
@@ -142,6 +142,7 @@ void QDeclarativeFlipable::setFront(QGraphicsObject *front)
d->front->setParentItem(this);
if (Back == d->current)
d->front->setOpacity(0.);
+ emit frontChanged();
}
QGraphicsObject *QDeclarativeFlipable::back()
@@ -165,6 +166,7 @@ void QDeclarativeFlipable::setBack(QGraphicsObject *back)
this, SLOT(retransformBack()));
connect(back, SIGNAL(heightChanged()),
this, SLOT(retransformBack()));
+ emit backChanged();
}
void QDeclarativeFlipable::retransformBack()