From 36fc392147ea79bb665058ea165c86f6cd6680d7 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Tue, 24 Mar 2020 21:03:05 +0100 Subject: Implement support for property observers Syntactically we call them signal handler expressions :-), now also working when the underlying property doesn't emit an old-style signal but is just a QProperty. Change-Id: I719a3e428f44af0fd48036434aefa682a02f7de1 Reviewed-by: Fabian Kosmale --- src/qml/qml/qqmldata_p.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/qml/qml/qqmldata_p.h') diff --git a/src/qml/qml/qqmldata_p.h b/src/qml/qml/qqmldata_p.h index 1c238767d8..f850746d92 100644 --- a/src/qml/qml/qqmldata_p.h +++ b/src/qml/qml/qqmldata_p.h @@ -74,6 +74,7 @@ class QQmlContextData; class QQmlNotifier; class QQmlDataExtended; class QQmlNotifierEndpoint; +class QQmlPropertyObserver; namespace QV4 { class ExecutableCompilationUnit; @@ -175,6 +176,7 @@ public: QQmlAbstractBinding *bindings; QQmlBoundSignal *signalHandlers; + std::vector propertyObservers; // Linked list for QQmlContext::contextObjects QQmlData *nextContextObject; -- cgit v1.2.3