diff options
Diffstat (limited to 'src/quick/items/qquickgridview.cpp')
-rw-r--r-- | src/quick/items/qquickgridview.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/quick/items/qquickgridview.cpp b/src/quick/items/qquickgridview.cpp index 32cc5edf40..90fa05f492 100644 --- a/src/quick/items/qquickgridview.cpp +++ b/src/quick/items/qquickgridview.cpp @@ -1315,8 +1315,8 @@ void QQuickGridView::setHighlightFollowsCurrentItem(bool autoHighlight) The model provides the set of data that is used to create the items in the view. Models can be created directly in QML using \l ListModel, - \l XmlListModel, \l DelegateModel, or \l ObjectModel, or provided by C++ - model classes. If a C++ model class is used, it must be a subclass of + \l DelegateModel, \l ObjectModel, or provided by C++ model classes. + If a C++ model class is used, it must be a subclass of \l QAbstractItemModel or a simple list. \sa {qml-data-models}{Data Models} @@ -1758,7 +1758,8 @@ void QQuickGridView::setSnapMode(SnapMode mode) \list \li The view is first created \li The view's \l model changes in such a way that the visible delegates are completely replaced - \li The view's \l model is \l {QAbstractItemModel::reset()}{reset}, if the model is a QAbstractItemModel subclass + \li The view's \l model is \l {QAbstractItemModel::beginResetModel()}{reset}, + if the model is a QAbstractItemModel subclass \endlist For example, here is a view that specifies such a transition: |