diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-12-15 22:22:16 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-12-15 22:22:16 (GMT) |
commit | 889b15f62121fd79b28b9f903569fc101578a139 (patch) | |
tree | e428adfeaa373673aa6557da6ede7ac56b63a800 /src/declarative/graphicsitems/qmlgraphicsitem_p.h | |
parent | 1e234c557ddbe5787b537f14ca383bd16e4e4cd1 (diff) | |
download | Qt-889b15f62121fd79b28b9f903569fc101578a139.zip Qt-889b15f62121fd79b28b9f903569fc101578a139.tar.gz Qt-889b15f62121fd79b28b9f903569fc101578a139.tar.bz2 |
Watch item geometry changes without using signal/slot connections.
Diffstat (limited to 'src/declarative/graphicsitems/qmlgraphicsitem_p.h')
-rw-r--r-- | src/declarative/graphicsitems/qmlgraphicsitem_p.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qmlgraphicsitem_p.h b/src/declarative/graphicsitems/qmlgraphicsitem_p.h index 304e36c..9496590 100644 --- a/src/declarative/graphicsitems/qmlgraphicsitem_p.h +++ b/src/declarative/graphicsitems/qmlgraphicsitem_p.h @@ -57,6 +57,7 @@ #include "qmlgraphicsanchors_p.h" #include "qmlgraphicsanchors_p_p.h" +#include "qmlgraphicsitemgeometrylistener_p.h" #include "../util/qmlstate_p.h" #include "../util/qmlnullablevalue_p_p.h" @@ -182,7 +183,6 @@ public: } return _anchors; } - QList<QmlGraphicsAnchors *> dependantAnchors; QmlGraphicsAnchors *_anchors; QmlGraphicsContents *_contents; @@ -206,6 +206,10 @@ public: return _anchorLines; } + void addGeometryListener(QmlGraphicsItemGeometryListener *); + void removeGeometryListener(QmlGraphicsItemGeometryListener *); + QList<QmlGraphicsItemGeometryListener *> geometryListeners; + QmlStateGroup *states(); QmlStateGroup *_stateGroup; |