From 11ae4beef6de7b8a9edad49184e13efb64c377b7 Mon Sep 17 00:00:00 2001 From: Ivan Solovev Date: Mon, 14 Dec 2020 10:28:38 +0100 Subject: QProperty docs: update macro name Use Q_OBJECT_BINDABLE_PROPERTY instead of non-existing ones Task-number: QTBUG-85520 Change-Id: I47e3ff150f54176b42a478fd3ff639754d90e70a Reviewed-by: Fabian Kosmale (cherry picked from commit 50e1976437f645e9d6571d4498e9d44388e59c19) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/kernel/qproperty.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/corelib/kernel/qproperty.cpp') diff --git a/src/corelib/kernel/qproperty.cpp b/src/corelib/kernel/qproperty.cpp index 3ddf693ac9..ad25123c2f 100644 --- a/src/corelib/kernel/qproperty.cpp +++ b/src/corelib/kernel/qproperty.cpp @@ -936,9 +936,10 @@ QString QPropertyBindingError::description() const QObjectBindableProperty and pass the change signal as a callback. QObjectBindableProperty is usually not used directly, instead an instance of it is created by - using the Q_BINDABLE_PROPERTY_DATA macro. + using the Q_OBJECT_BINDABLE_PROPERTY macro. - Use the Q_BINDABLE_PROPERTY macro in the class declaration to declare the property as bindable. + Use the Q_OBJECT_BINDABLE_PROPERTY macro in the class declaration to declare + the property as bindable. \snippet code/src_corelib_kernel_qproperty.cpp 0 -- cgit v1.2.3