aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/types/qqmlitemmodels.qdoc
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/types/qqmlitemmodels.qdoc')
-rw-r--r--src/qml/types/qqmlitemmodels.qdoc17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/qml/types/qqmlitemmodels.qdoc b/src/qml/types/qqmlitemmodels.qdoc
index 25c9321115..70059b07c6 100644
--- a/src/qml/types/qqmlitemmodels.qdoc
+++ b/src/qml/types/qqmlitemmodels.qdoc
@@ -60,6 +60,17 @@
should not store any QModelIndex. You can, however, store QPersistentModelIndexes
in a safe way.
+ \section1 QModelIndexList
+
+ \l QModelIndexList is exposed in QML as a JavaScript array. Conversions are
+ automatically made from and to C++. In fact, any JavaScript array can be
+ converted back to QModelIndexList, with non-QModelIndex objects replaced by
+ invalid QModelIndexes.
+
+ \note QModelIndex to QPersistentModelIndex conversion happens when accessing
+ the array elements because any QModelIndexList property retains reference
+ semantics when exposed this way.
+
\section1 \l QItemSelectionRange
\list
@@ -87,10 +98,10 @@
\li QItemSelectionRange \b{intersected}(QItemSelectionRange other)
\endlist
- \section1 \l QModelIndexList and \l QItemSelection
+ \section1 QItemSelection
- Both \l QModelIndexList and \l QItemSelection expose the following properties
- and functions as part of their \l QList API:
+ \l QItemSelection exposes the following properties and functions as part of
+ its \l QList API:
\list
\li \b length : int