diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2019-10-09 13:51:33 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2019-10-09 15:59:59 +0200 |
commit | d522746afa394960bef225ba08080d8364b69a7e (patch) | |
tree | 3654d8ff7ca1b263e91c948c36e752fd5e1f53e3 /src/qml/types/qqmlbind_p.h | |
parent | f1d5b567bd51c23bed686ae648d7c0a0a3e8b0d8 (diff) |
Output a message when changing the target of a Binding from elsewhere
Explicitly created Binding elements should not be silently disabled when
writing their target property. That would be rather confusing. Instead,
the binding stays active and updates the target property again on the
next change.
This behavior is still somewhat confusing. Therefore, if the
qt.qml.binding.removal logging category is enabled, output a helpful
message.
Fixes: QTBUG-78566
Change-Id: Idcd8e51e1cd7eaf78d70b15f065fd9159521ff20
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/types/qqmlbind_p.h')
-rw-r--r-- | src/qml/types/qqmlbind_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qml/types/qqmlbind_p.h b/src/qml/types/qqmlbind_p.h index ba040d2a0b..7bf4fc4dfd 100644 --- a/src/qml/types/qqmlbind_p.h +++ b/src/qml/types/qqmlbind_p.h @@ -115,6 +115,9 @@ protected: private: void prepareEval(); void eval(); + +private Q_SLOTS: + void targetValueChanged(); }; QT_END_NAMESPACE |