summaryrefslogtreecommitdiffstats
path: root/src/widgets/doc/src/model-view-programming.qdoc
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2017-01-30 12:39:22 +0100
committerLiang Qi <liang.qi@qt.io>2017-01-30 12:46:20 +0100
commit246799d8a7bf42c1f22fca7ef6d77e8d58054bad (patch)
treea0b92a804d7d2a30cd68fa327df5777d8bcc36ba /src/widgets/doc/src/model-view-programming.qdoc
parent5ad191850becd7dc1d61d0975f141a5db64e6373 (diff)
parent02cc57f4edbae450ecfa8368052afa44f8aeee19 (diff)
Merge remote-tracking branch 'origin/5.8' into dev
Conflicts: examples/network/network-chat/peermanager.cpp src/widgets/util/qsystemtrayicon.cpp src/widgets/util/qsystemtrayicon_qpa.cpp src/widgets/util/qsystemtrayicon_win.cpp src/widgets/util/qsystemtrayicon_x11.cpp Change-Id: I1c026df83818c0ccaf956980370e7522960627db
Diffstat (limited to 'src/widgets/doc/src/model-view-programming.qdoc')
-rw-r--r--src/widgets/doc/src/model-view-programming.qdoc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widgets/doc/src/model-view-programming.qdoc b/src/widgets/doc/src/model-view-programming.qdoc
index 84819e8c1a..f6b7c80656 100644
--- a/src/widgets/doc/src/model-view-programming.qdoc
+++ b/src/widgets/doc/src/model-view-programming.qdoc
@@ -2073,10 +2073,12 @@
model's structure, perhaps involving internal reorganization, sorting of data or
any other structural change, it is necessary to perform the following sequence:
+ \list
\li Emit the \l{QAbstractItemModel::layoutAboutToBeChanged()}{layoutAboutToBeChanged()} signal
\li Update internal data which represents the structure of the model.
\li Update persistent indexes using \l{QAbstractItemModel::changePersistentIndexList()}{changePersistentIndexList()}
\li Emit the \l{QAbstractItemModel::layoutChanged()}{layoutChanged()} signal.
+ \endlist
This sequence can be used for any structural update in lieu of the more
high-level and convenient protected methods. For example, if a model of