aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlcontext_p.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2019-07-02 13:21:41 +0200
committerUlf Hermann <ulf.hermann@qt.io>2019-07-03 08:55:56 +0200
commit1a0c2fb5bdaed175c9d9472b0658f93214572d4d (patch)
treea08d4fc28d96c1ea81f43d43b3939f7c7acba368 /src/qml/qml/qqmlcontext_p.h
parent64c1fbe96c68b1286a70242ff4922be140128cb2 (diff)
When setting a QObject as context property reset it when it's destroyed
Fixes: QTBUG-76346 Change-Id: Ie21f831a775489f0f2ac2e296136ed4932f5154f Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlcontext_p.h')
-rw-r--r--src/qml/qml/qqmlcontext_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlcontext_p.h b/src/qml/qml/qqmlcontext_p.h
index 1ddd04c9ff..5f7316b00c 100644
--- a/src/qml/qml/qqmlcontext_p.h
+++ b/src/qml/qml/qqmlcontext_p.h
@@ -104,6 +104,8 @@ public:
static int context_count(QQmlListProperty<QObject> *);
static QObject *context_at(QQmlListProperty<QObject> *, int);
+
+ void dropDestroyedQObject(const QString &name, QObject *destroyed);
};
class QQmlComponentAttached;