summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Buhr <andreas.buhr@qt.io>2020-12-15 19:00:58 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-01-08 10:56:53 +0000
commit600dca77f5f9db503f0638ba794a63d17ea73f35 (patch)
treec8ee9f4b55e8094975bbcfd464d6f36ecbeb4551
parent517450d03a7a1c638aa32fec5a6101b79779d827 (diff)
QProperty docs: update macro name
Use Q_OBJECT_BINDABLE_PROPERTY instead of non-existing ones. Follow-up to 50e1976437f645e9d6571d4498e9d44388e59c19. Task-number: QTBUG-85520 Change-Id: I138f0775d9804029f2ecd6bd3594ab47b247392e Reviewed-by: Paul Wicking <paul.wicking@qt.io> (cherry picked from commit 618dd6b5a7ed3e9933b3f3a8bf3429caf2506319) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/corelib/kernel/qproperty.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/corelib/kernel/qproperty.cpp b/src/corelib/kernel/qproperty.cpp
index ad25123c2f..31c766b128 100644
--- a/src/corelib/kernel/qproperty.cpp
+++ b/src/corelib/kernel/qproperty.cpp
@@ -1444,10 +1444,11 @@ struct QBindingStoragePrivate
\internal
QBindingStorage acts as a storage for property binding related data in QObject.
- Any property in a QObject can be made bindable, by using the Q_BINDABLE_PROPERTY_DATA
- macro to declare the data storage. Then implement a setter and getter for the property
- and declare it as a Q_PROPERTY as usual. Finally make it bindable, but using
- the Q_BINDABLE_PROPERTY macro after the declaration of the setter and getter.
+ Any property in a QObject can be made bindable by using the Q_OBJECT_BINDABLE_PROPERTY
+ macro to declare it. A setter and a getter for the property and a declaration using
+ Q_PROPERTY have to be made as usual.
+ Binding related data will automatically be stored within the QBindingStorage
+ inside the QObject.
*/
QBindingStorage::QBindingStorage()