diff options
author | Stephen Kelly <stephen@kdab.com> | 2010-05-03 10:43:26 (GMT) |
---|---|---|
committer | Stephen Kelly <stephen@kdab.com> | 2010-05-03 12:56:50 (GMT) |
commit | 64f1241f6419ca5e8e26a84db1e2f055f9919d1e (patch) | |
tree | e6ac73e380478783200e7fab56455782fd73d7ba /doc/src/snippets/code | |
parent | 0cea0e45523283d6c31998672f97b0343c1388f2 (diff) | |
download | Qt-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.cpp | 20 |
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] |