diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2017-01-24 10:43:32 +0100 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2017-01-25 14:56:43 +0000 |
commit | 393ab950be4a622dc2616c061eeb4f2194991093 (patch) | |
tree | a8e83bb510c9cc58c1461eb2345f122925e09c34 /src/core/nodes/qnode_p.h | |
parent | 4f6bf6d53c50221977d3f6e2c04ced70d815e6ac (diff) |
Allow to filter change events based on a track property
* QNode now has a PropertyTrackMode property
* QScene contains a table of PropertyTrakcMode data
* QPostman checks if a QNode is supposed to receive a change based on the
information available in the QScene property track mode table
* Unit tests updated and added for QPostman
Change-Id: I3b88037a949020a917c81817f1451ef532065982
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/core/nodes/qnode_p.h')
-rw-r--r-- | src/core/nodes/qnode_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/nodes/qnode_p.h b/src/core/nodes/qnode_p.h index a90011128..5d6329e62 100644 --- a/src/core/nodes/qnode_p.h +++ b/src/core/nodes/qnode_p.h @@ -84,6 +84,7 @@ public: void notifyObservers(const QSceneChangePtr &change) Q_DECL_OVERRIDE; void insertTree(QNode *treeRoot, int depth = 0); + void updatePropertyTrackMode(); Q_DECLARE_PUBLIC(QNode) @@ -97,6 +98,8 @@ public: bool m_blockNotifications; bool m_hasBackendNode; bool m_enabled; + QNode::PropertyTrackMode m_propertyTrackMode; + QStringList m_trackedProperties; static QNodePrivate *get(QNode *q); static void nodePtrDeleter(QNode *q); |