diff options
author | Topi Reinio <topi.reinio@qt.io> | 2020-11-04 13:06:48 +0100 |
---|---|---|
committer | Topi Reinio <topi.reinio@qt.io> | 2020-11-05 09:00:41 +0100 |
commit | 9eea418e1a13e0cee239903103dbccb83e936c40 (patch) | |
tree | ca43a44dddd6932f4b265b605bcf00861a8a92d4 /src | |
parent | 4fd12eef18204920b0974e7252eb6d97c4f1d485 (diff) |
Doc: Fix documentation warnings for QML Models and Test modules
Fixes: QTBUG-88156
Change-Id: Ie9723f1bb612f4603d15455a0320cc01b27ff181
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/imports/labsmodels/qqmltablemodel.cpp | 2 | ||||
-rw-r--r-- | src/imports/testlib/TestCase.qml | 2 | ||||
-rw-r--r-- | src/qmlmodels/qqmldelegatemodel.cpp | 4 | ||||
-rw-r--r-- | src/qmlmodels/qqmllistmodel.cpp | 2 | ||||
-rw-r--r-- | src/qmlmodels/qqmlobjectmodel.cpp | 4 |
5 files changed, 7 insertions, 7 deletions
diff --git a/src/imports/labsmodels/qqmltablemodel.cpp b/src/imports/labsmodels/qqmltablemodel.cpp index 2a39184980..c4209baab3 100644 --- a/src/imports/labsmodels/qqmltablemodel.cpp +++ b/src/imports/labsmodels/qqmltablemodel.cpp @@ -561,7 +561,7 @@ void QQmlTableModel::moveRow(int fromRowIndex, int toRowIndex, int rows) /*! \qmlmethod TableModel::removeRow(int rowIndex, int rows = 1) - Removes the row at \a rowIndex from the model. + Removes a number of \a rows at \a rowIndex from the model. \sa clear(), rowCount */ diff --git a/src/imports/testlib/TestCase.qml b/src/imports/testlib/TestCase.qml index 185287ebd5..fd0b799399 100644 --- a/src/imports/testlib/TestCase.qml +++ b/src/imports/testlib/TestCase.qml @@ -1621,7 +1621,7 @@ Item { } \endcode - \sa TouchEventSequence::press(), TouchEventSequence::move(), TouchEventSequence::release(), TouchEventSequence::stationary(), TouchEventSequence::commit(), QInputDevice::DeviceType::TouchScreen + \sa TouchEventSequence::press(), TouchEventSequence::move(), TouchEventSequence::release(), TouchEventSequence::stationary(), TouchEventSequence::commit(), QInputDevice::DeviceType */ function touchEvent(item) { diff --git a/src/qmlmodels/qqmldelegatemodel.cpp b/src/qmlmodels/qqmldelegatemodel.cpp index 9e1e635032..5f6fe93dc8 100644 --- a/src/qmlmodels/qqmldelegatemodel.cpp +++ b/src/qmlmodels/qqmldelegatemodel.cpp @@ -363,8 +363,8 @@ void QQmlDelegateModel::componentComplete() provided by a C++ model object. The C++ model object must be a \l {QAbstractItemModel} subclass or a simple list. - Models can also be created directly in QML, using a \l{ListModel} or - \l{QtQuick.XmlListModel::XmlListModel}{XmlListModel}. + Models can also be created directly in QML, for example using + ListModel. \sa {qml-data-models}{Data Models} \keyword dm-model-property diff --git a/src/qmlmodels/qqmllistmodel.cpp b/src/qmlmodels/qqmllistmodel.cpp index ef305562a5..0d556a2e0e 100644 --- a/src/qmlmodels/qqmllistmodel.cpp +++ b/src/qmlmodels/qqmllistmodel.cpp @@ -2283,7 +2283,7 @@ void QQmlListModel::clear() /*! \qmlmethod ListModel::remove(int index, int count = 1) - Deletes the content at \a index from the model. + Deletes \a count number of items at \a index from the model. \sa clear() */ diff --git a/src/qmlmodels/qqmlobjectmodel.cpp b/src/qmlmodels/qqmlobjectmodel.cpp index dac868a0a2..b498f3567d 100644 --- a/src/qmlmodels/qqmlobjectmodel.cpp +++ b/src/qmlmodels/qqmlobjectmodel.cpp @@ -396,7 +396,7 @@ void QQmlObjectModel::insert(int index, QObject *object) \qmlmethod QtQml.Models::ObjectModel::move(int from, int to, int n = 1) \since 5.6 - Moves \e n items \a from one position \a to another. + Moves \a n items \a from one position \a to another. The from and to ranges must exist; for example, to move the first 3 items to the end of the model: @@ -423,7 +423,7 @@ void QQmlObjectModel::move(int from, int to, int n) \qmlmethod QtQml.Models::ObjectModel::remove(int index, int n = 1) \since 5.6 - Removes \e n items at \a index from the model. + Removes \a n items at \a index from the model. \sa clear() */ |