diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-08-16 03:38:54 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-08-16 03:38:54 (GMT) |
commit | 8ae7f9508a94e37ceddd4c2b1b94dc43ff039cf3 (patch) | |
tree | 81c4c8317a4d9de7b9e74fd3d81f1cf3cc915883 /src/declarative/graphicsitems/qdeclarativepositioners_p_p.h | |
parent | b464dba6efe6593ed6a21511f999868dc78a3e9d (diff) | |
download | Qt-8ae7f9508a94e37ceddd4c2b1b94dc43ff039cf3.zip Qt-8ae7f9508a94e37ceddd4c2b1b94dc43ff039cf3.tar.gz Qt-8ae7f9508a94e37ceddd4c2b1b94dc43ff039cf3.tar.bz2 |
Make positioners work with QGraphicsWidgets also
Task-number: QTBUG-12416
Reviewed-by: Alexis Menard
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativepositioners_p_p.h')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativepositioners_p_p.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativepositioners_p_p.h b/src/declarative/graphicsitems/qdeclarativepositioners_p_p.h index 822079b..35946e9 100644 --- a/src/declarative/graphicsitems/qdeclarativepositioners_p_p.h +++ b/src/declarative/graphicsitems/qdeclarativepositioners_p_p.h @@ -94,8 +94,8 @@ public: QDeclarativeTransitionManager addTransitionManager; QDeclarativeTransitionManager moveTransitionManager; - void watchChanges(QDeclarativeItem *other); - void unwatchChanges(QDeclarativeItem* other); + void watchChanges(QGraphicsObject *other); + void unwatchChanges(QGraphicsObject* other); bool queuedPositioning : 1; bool doingPositioning : 1; bool anchorConflict : 1; @@ -123,6 +123,7 @@ public: if (newGeometry.size() != oldGeometry.size()) q->prePositioning(); } + virtual void itemVisibilityChanged(QDeclarativeItem *) { schedulePositioning(); |