aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlengine_p.h
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2021-09-15 10:12:21 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-10-01 15:12:59 +0000
commitb34b0b0edb0e044a5827787be548ec936e820656 (patch)
tree55d4a7fc86c666a46414ada35e8770724b6cf925 /src/qml/qml/qqmlengine_p.h
parent5059809646ea93477557a43c4d0b0f1d5c8a0a10 (diff)
QQmlBinding::dependencies: Handle QProperty
The method did not consider QProperty properties, as those do not show up via the active guards mechanism. At some point, we probably also want to introduce QQmlAnyBinding::dependencies, as there are now bindings which do not derive from QQmlBinding. Change-Id: Ib4b227a440e9494c09d92028f9eaa5ad1e87342f Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Andrei Golubev <andrei.golubev@qt.io> (cherry picked from commit de28bc00f514c3ee8d8fd3166973c063766e77fd) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/qml/qml/qqmlengine_p.h')
-rw-r--r--src/qml/qml/qqmlengine_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlengine_p.h b/src/qml/qml/qqmlengine_p.h
index 499f9dd492..18a0164028 100644
--- a/src/qml/qml/qqmlengine_p.h
+++ b/src/qml/qml/qqmlengine_p.h
@@ -75,6 +75,7 @@
#include <QtCore/qmutex.h>
#include <QtCore/qstring.h>
#include <QtCore/qthread.h>
+#include <QtCore/QMetaProperty>
#include <private/qobject_p.h>
@@ -132,6 +133,8 @@ struct QPropertyChangeTrigger : QPropertyObserver {
QObject *target = nullptr;
int propertyIndex = 0;
static void trigger(QPropertyObserver *, QUntypedPropertyData *);
+
+ QMetaProperty property() const;
};
struct TriggerList : QPropertyChangeTrigger {