summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/corelib/itemmodels/qabstractitemmodel.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/corelib/itemmodels/qabstractitemmodel.cpp b/src/corelib/itemmodels/qabstractitemmodel.cpp
index 5e8216f598d..66d7c943413 100644
--- a/src/corelib/itemmodels/qabstractitemmodel.cpp
+++ b/src/corelib/itemmodels/qabstractitemmodel.cpp
@@ -606,7 +606,8 @@ QModelIndex QPersistentModelIndex::sibling(int row, int column) const
/*!
Returns the data for the given \a role for the item referred to by the
- index.
+ index, or a default-constructed QVariant if this persistent model index
+ is \l{isValid()}{invalid}.
\sa Qt::ItemDataRole, QAbstractItemModel::setData()
*/
@@ -1315,7 +1316,8 @@ void QAbstractItemModel::resetInternalData()
\fn QVariant QModelIndex::data(int role) const
Returns the data for the given \a role for the item referred to by the
- index.
+ index, or a default-constructed QVariant if this model index is
+ \l{isValid()}{invalid}.
*/
/*!