summaryrefslogtreecommitdiff
path: root/doc/src/snippets/code
diff options
context:
space:
mode:
authorSimon A. Eugster <simon.eu@gmail.com>2012-01-24 15:10:08 +0100
committerQt by Nokia <qt-info@nokia.com>2012-01-25 00:55:24 +0100
commit7e828e365e05cdb98423f10374ea8fd2177ba3f7 (patch)
tree48c07f942533bcf5b41bc4b9d22e1b60a20e146c /doc/src/snippets/code
parent9096334d142f44303fc8a00d4a5024d07bfe9e24 (diff)
downloadqtbase-7e828e365e05cdb98423f10374ea8fd2177ba3f7.tar.gz
Document where modelReset() is emitted
The resetModel() signal indicates that the model is reset. Previously there was no note that the signal is emitted also when endResetModel() is called. Task-number: QTBUG-23755 Change-Id: I6c3c1ccef580e9c1112c3af79912cffca675e140 Reviewed-by: Robin Burchell <robin+qt@viroteck.net> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'doc/src/snippets/code')
-rw-r--r--doc/src/snippets/code/src_corelib_kernel_qabstractitemmodel.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/src/snippets/code/src_corelib_kernel_qabstractitemmodel.cpp b/doc/src/snippets/code/src_corelib_kernel_qabstractitemmodel.cpp
index d0de0b8e1d..f35a0c5681 100644
--- a/doc/src/snippets/code/src_corelib_kernel_qabstractitemmodel.cpp
+++ b/doc/src/snippets/code/src_corelib_kernel_qabstractitemmodel.cpp
@@ -86,3 +86,14 @@ beginMoveRows(parent, 2, 2, parent, 0);
//! [9]
beginMoveRows(parent, 2, 2, parent, 4);
//! [9]
+
+//! [10]
+myData.clear();
+reset();
+//! [10]
+
+//! [11]
+beginResetModel();
+myData.clear();
+endResetModel();
+//! [11]