diff options
authorMitch Curtis <mitch.curtis@digia.com>2014-01-15 08:54:04 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-16 09:11:27 +0100
commitd574ccdd4ddd4d8c949ab5aa9f3a6baec25d9b81 (patch)
parent019598f57e892feacfb43b1095b3ccf5cec4d4ee (diff)
Remove the two default role names listed in cppmodels documentation.
The list is incomplete, and they are now fully documented under QAbstractItemModel::roleNames(). This saves us maintaining two lists that can easily get out of sync. Change-Id: I4895a8ba19a4f48c26b4077e8bf2eba8c4c8407c Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
1 files changed, 1 insertions, 14 deletions
diff --git a/src/quick/doc/src/concepts/modelviewsdata/cppmodels.qdoc b/src/quick/doc/src/concepts/modelviewsdata/cppmodels.qdoc
index abef6b765b..f1e13e127c 100644
--- a/src/quick/doc/src/concepts/modelviewsdata/cppmodels.qdoc
+++ b/src/quick/doc/src/concepts/modelviewsdata/cppmodels.qdoc
@@ -110,20 +110,7 @@ by the other approaches. A QAbstractItemModel can also automatically
notify a QML view when the model data changes.
The roles of a QAbstractItemModel subclass can be exposed to QML by
-reimplementing QAbstractItemModel::roleNames(). The default role names
-set by Qt are:
-\li Qt Role
-\li QML Role Name
-\li Qt::DisplayRole
-\li display
-\li Qt::DecorationRole
-\li decoration
+reimplementing QAbstractItemModel::roleNames().
Here is an application with a QAbstractListModel subclass named \c AnimalModel,
which exposes the \e type and \e sizes roles. It reimplements