summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2020-10-22 16:56:06 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-10-23 10:25:38 +0200
commitcbefd42e39d28d478373b9191cc9b3340481390b (patch)
treecb58850ebbfbdb03883793b46b0078b4dfb8a965 /src/corelib/kernel
parent2f91cbaccb532f5e0b2e7146e6184617aee25358 (diff)
Fix documentation for QVariantRef and QVariantPointer
Change-Id: I86b749ec14876df98d5d873cf2274facea49f0c5 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src/corelib/kernel')
-rw-r--r--src/corelib/kernel/qvariant.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/corelib/kernel/qvariant.cpp b/src/corelib/kernel/qvariant.cpp
index f7652e28d4..55fd001cfd 100644
--- a/src/corelib/kernel/qvariant.cpp
+++ b/src/corelib/kernel/qvariant.cpp
@@ -2744,40 +2744,40 @@ const void *QtPrivate::QVariantTypeCoercer::coerce(const QVariant &value, const
*/
/*!
- \fn QVariantRef::QVariantRef(const Pointer *pointer)
+ \fn template<typename Pointer> QVariantRef<Pointer>::QVariantRef(const Pointer *pointer)
Creates a QVariantRef from an \a pointer.
*/
/*!
- \fn QVariantRef &QVariantRef::operator=(const QVariant &value)
+ \fn template<typename Pointer> QVariantRef<Pointer> &QVariantRef<Pointer>::operator=(const QVariant &value)
Assigns a new \a value to the value pointed to by the pointer this
QVariantRef refers to.
*/
/*!
- \fn QVariantRef &QVariantRef::operator=(const QVariantRef &value)
+ \fn template<typename Pointer> QVariantRef<Pointer> &QVariantRef<Pointer>::operator=(const QVariantRef &value)
Assigns a new \a value to the value pointed to by the pointer this
QVariantRef refers to.
*/
/*!
- \fn QVariantRef &QVariantRef::operator=(QVariantRef &&value)
+ \fn template<typename Pointer> QVariantRef<Pointer> &QVariantRef<Pointer>::operator=(QVariantRef &&value)
Assigns a new \a value to the value pointed to by the pointer this
QVariantRef refers to.
*/
/*!
- \fn QVariantRef::operator QVariant() const
+ \fn template<typename Pointer> QVariantRef<Pointer>::operator QVariant() const
Resolves the QVariantRef to an actual QVariant.
*/
/*!
- \fn void swap(QVariantRef a, QVariantRef b)
+ \fn template<typename Pointer> void swap(QVariantRef<Pointer> a, QVariantRef<Pointer> b)
Swaps the values pointed to by the pointers the QVariantRefs
\a a and \a b refer to.
@@ -2824,7 +2824,7 @@ const QVariant *QVariantConstPointer::operator->() const
\class QVariantPointer
\since 6.0
\inmodule QtCore
- \brief Emulated pointer to QVariant based on a pointer.
+ \brief QVariantPointer is a template class that emulates a pointer to QVariant based on a pointer.
QVariantConstPointer wraps a pointer and returns QVariantRef to it from its
operator*(). This makes it suitable as replacement for an actual pointer. We
@@ -2833,19 +2833,19 @@ const QVariant *QVariantConstPointer::operator->() const
*/
/*!
- \fn QVariantPointer::QVariantPointer(const Pointer *pointer)
+ \fn template<typename Pointer> QVariantPointer<Pointer>::QVariantPointer(const Pointer *pointer)
Constructs a QVariantPointer from the given \a pointer.
*/
/*!
- \fn QVariantRef QVariantPointer::operator*() const
+ \fn template<typename Pointer> QVariantRef<Pointer> QVariantPointer<Pointer>::operator*() const
Dereferences the QVariantPointer to a QVariantRef.
*/
/*!
- \fn Pointer QVariantPointer::operator->() const
+ \fn template<typename Pointer> Pointer QVariantPointer<Pointer>::operator->() const
Dereferences and returns the pointer. The pointer is expected to also
implement operator->().