aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlmodels/qqmldelegatemodel_p_p.h
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2019-09-17 14:00:42 +0200
committerFabian Kosmale <fabian.kosmale@qt.io>2019-09-18 11:16:39 +0200
commit39274b8f605cbedb86e55fc29fd4421e38c717a4 (patch)
tree42846fe234546762d47f2861dd7907efecb59cf2 /src/qmlmodels/qqmldelegatemodel_p_p.h
parent258a175a801fc4e5d1a971f06a8c9b4d3ac67c80 (diff)
Required properties: Break binding to model on write
This mirrors the behavior in other parts of QML where writing to a property in imperative code breaks the binding. Change-Id: Id19eef17a3c5e77bc4c2772bd749b38c732606a8 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qmlmodels/qqmldelegatemodel_p_p.h')
-rw-r--r--src/qmlmodels/qqmldelegatemodel_p_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qmlmodels/qqmldelegatemodel_p_p.h b/src/qmlmodels/qqmldelegatemodel_p_p.h
index f9dbc61a94..06365a212f 100644
--- a/src/qmlmodels/qqmldelegatemodel_p_p.h
+++ b/src/qmlmodels/qqmldelegatemodel_p_p.h
@@ -454,8 +454,11 @@ class PropertyUpdater : public QObject
public:
PropertyUpdater(QObject *parent);
+ QHash<int, QMetaObject::Connection> senderToConnection;
+ int updateCount = 0;
public Q_SLOTS:
void doUpdate();
+ void breakBinding();
};
QT_END_NAMESPACE