summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qmlgraphicsitem_p.h
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2009-11-10 00:31:05 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2009-11-10 00:31:33 (GMT)
commitc99661bb07af4838d3d26dcd6332587985edc7f4 (patch)
tree3d30050e8f28632f033a8be3734e3fd08770dee3 /src/declarative/graphicsitems/qmlgraphicsitem_p.h
parent1557f3b4714b7bc53eaa850b9fbbec6bc24d3ff9 (diff)
downloadQt-c99661bb07af4838d3d26dcd6332587985edc7f4.zip
Qt-c99661bb07af4838d3d26dcd6332587985edc7f4.tar.gz
Qt-c99661bb07af4838d3d26dcd6332587985edc7f4.tar.bz2
Positioners now watch for sibling order changes
Task-number: QT-2241
Diffstat (limited to 'src/declarative/graphicsitems/qmlgraphicsitem_p.h')
-rw-r--r--src/declarative/graphicsitems/qmlgraphicsitem_p.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qmlgraphicsitem_p.h b/src/declarative/graphicsitems/qmlgraphicsitem_p.h
index f98c121..e1d7342 100644
--- a/src/declarative/graphicsitems/qmlgraphicsitem_p.h
+++ b/src/declarative/graphicsitems/qmlgraphicsitem_p.h
@@ -232,6 +232,24 @@ public:
emit q_func()->wantsFocusChanged();
}
+ // Reimplemented from QGraphicsItemPrivate
+ virtual void siblingOrderChange()
+ {
+ foreach(QmlGraphicsItemPrivate* other, siblingOrderNotifiees)
+ other->otherSiblingOrderChange(this);
+ }
+ QList<QmlGraphicsItemPrivate*> siblingOrderNotifiees;
+ void registerSiblingOrderNotification(QmlGraphicsItemPrivate* other)
+ {
+ siblingOrderNotifiees << other;
+ }
+ void unregisterSiblingOrderNotification(QmlGraphicsItemPrivate* other)
+ {
+ siblingOrderNotifiees.removeAll(other);
+ }
+ virtual void otherSiblingOrderChange(QmlGraphicsItemPrivate* other) {Q_UNUSED(other)}
+
+
static int consistentTime;
static QTime currentTime();
static void Q_DECLARATIVE_EXPORT setConsistentTime(int t);