summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qproperty.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-08-06 12:02:45 +0200
committerLars Knoll <lars.knoll@qt.io>2020-09-02 22:44:26 +0200
commit80745bfffe55effcea466faeaad47c7aa2569374 (patch)
treee7374bdb24300cd4db244bc887715b0aa47d470b /src/corelib/kernel/qproperty.cpp
parent00e181fdae8fa29f56248989348c2d650752bf69 (diff)
Generalize some methods taking a QProperty<>
Generalize some methods taking a QProperty<T>, so that they can work with other types that implement the QProperty interface as well. This removes some duplication between QProperty and QNotifiedProperty. It also makes it possible to create private property classes that store their data in a different place. Change-Id: I4b1ae8589cb9a76be59e63206044dcf2244163c2 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/corelib/kernel/qproperty.cpp')
-rw-r--r--src/corelib/kernel/qproperty.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/corelib/kernel/qproperty.cpp b/src/corelib/kernel/qproperty.cpp
index 6336bd5c58..a0cdda4200 100644
--- a/src/corelib/kernel/qproperty.cpp
+++ b/src/corelib/kernel/qproperty.cpp
@@ -818,6 +818,12 @@ QString QPropertyBindingError::description() const
*/
/*!
+ \fn template <typename T> QtPrivate::QPropertyBase &QProperty<T>::propertyBase() const
+ \internal
+*/
+
+
+/*!
\class QNotifiedProperty
\inmodule QtCore
\brief The QNotifiedProperty class is a template class that enables automatic property bindings
@@ -1042,6 +1048,12 @@ QString QPropertyBindingError::description() const
*/
/*!
+ \fn template <typename T> QtPrivate::QPropertyBase &QNotifiedProperty<T, Callback>::propertyBase() const
+ \internal
+*/
+
+
+/*!
\class QPropertyChangeHandler
\inmodule QtCore
\brief The QPropertyChangeHandler class controls the lifecycle of change callback installed on a QProperty.