summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qmlgraphicsitem_p.h
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-12-15 22:22:16 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-12-15 22:22:16 (GMT)
commit889b15f62121fd79b28b9f903569fc101578a139 (patch)
treee428adfeaa373673aa6557da6ede7ac56b63a800 /src/declarative/graphicsitems/qmlgraphicsitem_p.h
parent1e234c557ddbe5787b537f14ca383bd16e4e4cd1 (diff)
downloadQt-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.h6
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;