aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2020-11-12 16:29:31 +0100
committerUlf Hermann <ulf.hermann@qt.io>2020-11-12 16:47:36 +0100
commit9f98bfd81d4831b1e2c8ffa7802f51bfb99be4a2 (patch)
tree75124dbcba337b2f9d295f6148e24e48977a7cf6 /src/qml/qml
parent491caad273ff824dd4f9f4a03bce1d68741b1bc5 (diff)
QQmlEngine::captureProperty(): Don't capture constant properties
That is a noop and produces a warning. Change-Id: I75787aee66b55522005247524140e3f3a7dd56ba Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/qml')
-rw-r--r--src/qml/qml/qqmlengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlengine.cpp b/src/qml/qml/qqmlengine.cpp
index c41c1d9a54..2a35c27cc6 100644
--- a/src/qml/qml/qqmlengine.cpp
+++ b/src/qml/qml/qqmlengine.cpp
@@ -1335,7 +1335,7 @@ void QQmlEngine::setOutputWarningsToStandardError(bool enabled)
void QQmlEngine::captureProperty(QObject *object, const QMetaProperty &property) const
{
Q_D(const QQmlEngine);
- if (d->propertyCapture) {
+ if (d->propertyCapture && !property.isConstant()) {
d->propertyCapture->captureProperty(
object, property.propertyIndex(),
QMetaObjectPrivate::signalIndex(property.notifySignal()));