From 39274b8f605cbedb86e55fc29fd4421e38c717a4 Mon Sep 17 00:00:00 2001 From: Fabian Kosmale Date: Tue, 17 Sep 2019 14:00:42 +0200 Subject: 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 --- src/qmlmodels/qqmldelegatemodel_p_p.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/qmlmodels/qqmldelegatemodel_p_p.h') 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 senderToConnection; + int updateCount = 0; public Q_SLOTS: void doUpdate(); + void breakBinding(); }; QT_END_NAMESPACE -- cgit v1.2.3