From caa7970df85e3e8f4e8d7c99d801d153d10cdbd1 Mon Sep 17 00:00:00 2001 From: Fabian Kosmale Date: Fri, 15 Jul 2022 13:19:37 +0200 Subject: [PATCH] QMetaType: fix documentation The doc comments were missing the classname, and therefore did not show up in the correct places. Change-Id: I23a56356dcad862e2fe1f6f8c3da2f39852b80c7 Reviewed-by: Ulf Hermann (cherry picked from commit 2d6ca88512f9e318491c502f6f97d2e853ffca4a) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/kernel/qmetatype.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/corelib/kernel/qmetatype.cpp b/src/corelib/kernel/qmetatype.cpp index 971861d9b28..7ab196ddd9e 100644 --- a/src/corelib/kernel/qmetatype.cpp +++ b/src/corelib/kernel/qmetatype.cpp @@ -1591,7 +1591,7 @@ Q_GLOBAL_STATIC(QMetaTypeMutableViewRegistry, customTypesMutableViewRegistry) */ /*! - \fn template static bool registerConverter(To(From::*function)() const) + \fn template 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 @@ -1601,25 +1601,25 @@ Q_GLOBAL_STATIC(QMetaTypeMutableViewRegistry, customTypesMutableViewRegistry) */ /*! - \fn template static bool registerConverter(To(From::*function)(bool*) const) + \fn template 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 static bool registerConverter(UnaryFunction function) + \fn template 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 */ @@ -1642,7 +1642,7 @@ bool QMetaType::registerConverterFunction(const ConverterFunction &f, QMetaType } /*! - \fn template static bool registerMutableView(To(From::*function)()) + \fn template 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 @@ -1651,7 +1651,7 @@ bool QMetaType::registerConverterFunction(const ConverterFunction &f, QMetaType */ /*! - \fn template static bool registerMutableView(UnaryFunction function) + \fn template 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