From d7e478475eb94cd4fdb3e9fcbd2c407796f2342b Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Fri, 21 May 2021 18:50:23 +0200 Subject: [PATCH] Fix qdoc warnings Change-Id: Ie51ccff3272f078e062380033678828a01f03eb8 Reviewed-by: Paul Wicking --- src/corelib/itemmodels/qabstractproxymodel.cpp | 3 ++- src/corelib/itemmodels/qsortfilterproxymodel.cpp | 2 +- src/corelib/kernel/qmetaobject.cpp | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/corelib/itemmodels/qabstractproxymodel.cpp b/src/corelib/itemmodels/qabstractproxymodel.cpp index 492b177708..837d283e6d 100644 --- a/src/corelib/itemmodels/qabstractproxymodel.cpp +++ b/src/corelib/itemmodels/qabstractproxymodel.cpp @@ -492,7 +492,8 @@ QHash QAbstractProxyModel::roleNames() const This method is useful if your proxy model wants to maintain the parent-child relationship of items in the source model. When reimplementing mapToSource(), you can call this method to - create an index of the source model. + create an index for row \a row and column \a col of the source model. + A typical use would be to save the internal pointer coming from the source model in the proxy index when reimplementing mapFromSource() and use the same internal pointer as \a internalPtr to recover the original source index when diff --git a/src/corelib/itemmodels/qsortfilterproxymodel.cpp b/src/corelib/itemmodels/qsortfilterproxymodel.cpp index 1b5dc0dec2..cfa6ed49cf 100644 --- a/src/corelib/itemmodels/qsortfilterproxymodel.cpp +++ b/src/corelib/itemmodels/qsortfilterproxymodel.cpp @@ -282,7 +282,7 @@ public: void remove_from_mapping(const QModelIndex &source_parent); - /*! + /* * Legacy: changing the pattern through a string does not change the * case sensitivity. */ diff --git a/src/corelib/kernel/qmetaobject.cpp b/src/corelib/kernel/qmetaobject.cpp index b09fe933e6..ee2bf156fe 100644 --- a/src/corelib/kernel/qmetaobject.cpp +++ b/src/corelib/kernel/qmetaobject.cpp @@ -2144,7 +2144,7 @@ int QMetaMethod::revision() const Returns whether the method is const qualified. - \note This method might errorneously return \false for a const method + \note This method might errorneously return \c false for a const method if it belongs to a library compiled against an older version of Qt. */ bool QMetaMethod::isConst() const