From d574ccdd4ddd4d8c949ab5aa9f3a6baec25d9b81 Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Wed, 15 Jan 2014 08:54:04 +0100 Subject: 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 --- src/quick/doc/src/concepts/modelviewsdata/cppmodels.qdoc | 15 +-------------- 1 file changed, 1 insertion(+), 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: - -\table -\header -\li Qt Role -\li QML Role Name -\row -\li Qt::DisplayRole -\li display -\row -\li Qt::DecorationRole -\li decoration -\endtable +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 -- cgit v1.2.3