summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qproperty_p.h
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_p.h
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_p.h')
-rw-r--r--src/corelib/kernel/qproperty_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qproperty_p.h b/src/corelib/kernel/qproperty_p.h
index 1ddb3dd453..9c43c23959 100644
--- a/src/corelib/kernel/qproperty_p.h
+++ b/src/corelib/kernel/qproperty_p.h
@@ -90,7 +90,7 @@ struct Q_AUTOTEST_EXPORT QPropertyBasePointer
template <typename T>
static QPropertyBasePointer get(QProperty<T> &property)
{
- return QPropertyBasePointer{&property.d.priv};
+ return QPropertyBasePointer{&property.propertyBase()};
}
};