summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code
diff options
context:
space:
mode:
authorStephen Kelly <stephen@kdab.com>2010-05-03 10:43:26 (GMT)
committerStephen Kelly <stephen@kdab.com>2010-05-03 12:56:50 (GMT)
commit64f1241f6419ca5e8e26a84db1e2f055f9919d1e (patch)
treee6ac73e380478783200e7fab56455782fd73d7ba /doc/src/snippets/code
parent0cea0e45523283d6c31998672f97b0343c1388f2 (diff)
downloadQt-64f1241f6419ca5e8e26a84db1e2f055f9919d1e.zip
Qt-64f1241f6419ca5e8e26a84db1e2f055f9919d1e.tar.gz
Qt-64f1241f6419ca5e8e26a84db1e2f055f9919d1e.tar.bz2
Add diagrams for illustrating the process of moving rows.
Diffstat (limited to 'doc/src/snippets/code')
-rw-r--r--doc/src/snippets/code/src_corelib_kernel_qabstractitemmodel.cpp20
1 files changed, 20 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 22ea240..e3ad483 100644
--- a/doc/src/snippets/code/src_corelib_kernel_qabstractitemmodel.cpp
+++ b/doc/src/snippets/code/src_corelib_kernel_qabstractitemmodel.cpp
@@ -67,3 +67,23 @@ beginInsertColumns(parent, 6, 8);
//! [5]
beginRemoveColumns(parent, 4, 6);
//! [5]
+
+
+//! [6]
+beginMoveRows(sourceParent, 2, 4, destinationParent, 2);
+//! [6]
+
+
+//! [7]
+beginMoveRows(sourceParent, 2, 4, destinationParent, 6);
+//! [7]
+
+
+//! [8]
+beginMoveRows(parent, 2, 2, parent, 0);
+//! [8]
+
+
+//! [9]
+beginMoveRows(parent, 2, 2, parent, 4);
+//! [9]