summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qmetatype.cpp
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2022-07-15 13:19:37 +0200
committerFabian Kosmale <fabian.kosmale@qt.io>2022-07-21 15:07:22 +0200
commit2d6ca88512f9e318491c502f6f97d2e853ffca4a (patch)
tree9a4d48470761642194988899edf176e4c4a5caa5 /src/corelib/kernel/qmetatype.cpp
parentc15489579ee052642d8cb30b0f8156572e2d4a62 (diff)
QMetaType: fix documentation
The doc comments were missing the classname, and therefore did not show up in the correct places. Pick-to: 6.4 6.3 6.2 Change-Id: I23a56356dcad862e2fe1f6f8c3da2f39852b80c7 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/corelib/kernel/qmetatype.cpp')
-rw-r--r--src/corelib/kernel/qmetatype.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/corelib/kernel/qmetatype.cpp b/src/corelib/kernel/qmetatype.cpp
index 13cac5f305..7f44018717 100644
--- a/src/corelib/kernel/qmetatype.cpp
+++ b/src/corelib/kernel/qmetatype.cpp
@@ -1596,7 +1596,7 @@ Q_GLOBAL_STATIC(QMetaTypeMutableViewRegistry, customTypesMutableViewRegistry)
*/
/*!
- \fn template<typename From, typename To> static bool registerConverter(To(From::*function)() const)
+ \fn template<typename From, typename To> static bool QMetaType::registerConverter(To(From::*function)() const)
\since 5.2
\overload
Registers a method \a function like To From::function() const as converter from type From
@@ -1606,25 +1606,25 @@ Q_GLOBAL_STATIC(QMetaTypeMutableViewRegistry, customTypesMutableViewRegistry)
*/
/*!
- \fn template<typename From, typename To> static bool registerConverter(To(From::*function)(bool*) const)
+ \fn template<typename From, typename To> static bool QMetaType::registerConverter(To(From::*function)(bool*) const)
\since 5.2
\overload
Registers a method \a function like To From::function(bool *ok) const as converter from type From
to type To in the meta type system. Returns \c true if the registration succeeded, otherwise false.
- The \a ok pointer can be used by the function to indicate whether the conversion succeeded.
+ The \c ok pointer can be used by the function to indicate whether the conversion succeeded.
\snippet qmetatype/registerConverters.cpp memberOk
*/
/*!
- \fn template<typename From, typename To, typename UnaryFunction> static bool registerConverter(UnaryFunction function)
+ \fn template<typename From, typename To, typename UnaryFunction> static bool QMetaType::registerConverter(UnaryFunction function)
\since 5.2
\overload
Registers a unary function object \a function as converter from type From
to type To in the meta type system. Returns \c true if the registration succeeded, otherwise false.
- \a function must take an instance of type \a From and return an instance of \a To. It can be a function
+ \a function must take an instance of type \c From and return an instance of \c To. It can be a function
pointer, a lambda or a functor object.
\snippet qmetatype/registerConverters.cpp unaryfunc
*/
@@ -1647,7 +1647,7 @@ bool QMetaType::registerConverterFunction(const ConverterFunction &f, QMetaType
}
/*!
- \fn template<typename From, typename To> static bool registerMutableView(To(From::*function)())
+ \fn template<typename From, typename To> static bool QMetaType::registerMutableView(To(From::*function)())
\since 6.0
\overload
Registers a method \a function like \c {To From::function()} as mutable view of type \c {To} on
@@ -1656,7 +1656,7 @@ bool QMetaType::registerConverterFunction(const ConverterFunction &f, QMetaType
*/
/*!
- \fn template<typename From, typename To, typename UnaryFunction> static bool registerMutableView(UnaryFunction function)
+ \fn template<typename From, typename To, typename UnaryFunction> static bool QMetaType::registerMutableView(UnaryFunction function)
\since 6.0
\overload
Registers a unary function object \a function as mutable view of type To on type From