summaryrefslogtreecommitdiffstats
path: root/src/corelib/itemmodels/qabstractitemmodel.cpp
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@qt.io>2018-01-16 09:16:43 +0100
committerMartin Smith <martin.smith@qt.io>2018-01-18 06:32:01 +0000
commit706e8a0295832a54e86fb72e1505444a69a55362 (patch)
treef778c294608cf5b7f31b2a1ca494b3c3a915802c /src/corelib/itemmodels/qabstractitemmodel.cpp
parent52d761e60ade70f08c01d24e2b6a4dd2165d2a4a (diff)
doc: Fix remaining qdoc warnings in qabstractitemmodel.cpp
Some enum values were qualified with the enum name, which is not required in the \value command. The qualifications were removed. Change-Id: Ic67003ae04b558f437b331bd3e01af88ace0e888 Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'src/corelib/itemmodels/qabstractitemmodel.cpp')
-rw-r--r--src/corelib/itemmodels/qabstractitemmodel.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/corelib/itemmodels/qabstractitemmodel.cpp b/src/corelib/itemmodels/qabstractitemmodel.cpp
index 758ac4bba6..d826110ec7 100644
--- a/src/corelib/itemmodels/qabstractitemmodel.cpp
+++ b/src/corelib/itemmodels/qabstractitemmodel.cpp
@@ -3350,18 +3350,18 @@ QModelIndexList QAbstractItemModel::persistentIndexList() const
This enum can be used to control the checks performed by
QAbstractItemModel::checkIndex().
- \value CheckIndexOption::NoOption No check options are specified.
+ \value NoOption No check options are specified.
- \value CheckIndexOption::IndexIsValid The model index passed to
+ \value IndexIsValid The model index passed to
QAbstractItemModel::checkIndex() is checked to be a valid model index.
- \value CheckIndexOption::DoNotUseParent Does not perform any check
+ \value DoNotUseParent Does not perform any check
involving the usage of the parent of the index passed to
QAbstractItemModel::checkIndex().
- \value CheckIndexOption::ParentIsInvalid The parent of the model index
+ \value ParentIsInvalid The parent of the model index
passed to QAbstractItemModel::checkIndex() is checked to be an invalid
- model index. If both this option and CheckIndexOption::DoNotUseParent
+ model index. If both this option and DoNotUseParent
are specified, then this option is ignored.
*/
@@ -3383,17 +3383,17 @@ QModelIndexList QAbstractItemModel::persistentIndexList() const
\endlist
The \a options argument may change some of these checks. If \a options
- contains \c{CheckIndexOption::IndexIsValid}, then \a index must be a valid
+ contains \c{IndexIsValid}, then \a index must be a valid
index; this is useful when reimplementing functions such as \l{data()} or
\l{setData()}, which expect valid indexes.
- If \a options contains \c{CheckIndexOption::DoNotUseParent}, then the
+ If \a options contains \c{DoNotUseParent}, then the
checks that would call \l{parent()} are omitted; this allows calling this
function from a \l{parent()} reimplementation (otherwise, this would result
in endless recursion and a crash).
- If \a options does not contain \c{CheckIndexOption::DoNotUseParent}, and it
- contains \c{CheckIndexOption::ParentIsInvalid}, then an additional check is
+ If \a options does not contain \c{DoNotUseParent}, and it
+ contains \c{ParentIsInvalid}, then an additional check is
performed: the parent index is checked for not being valid. This is useful
when implementing flat models such as lists or tables, where no model index
should have a valid parent index.