summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-03-15 04:22:49 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-03-15 04:22:49 (GMT)
commit29edb69a909126448c4c73b2c216d0ccb7981418 (patch)
tree85a5f5f1ee26851f0af0c1b25ee8c6aeff46bc1f /doc
parentb55f19b956958dc94e8f35e7dc215a70445759a4 (diff)
downloadQt-29edb69a909126448c4c73b2c216d0ccb7981418.zip
Qt-29edb69a909126448c4c73b2c216d0ccb7981418.tar.gz
Qt-29edb69a909126448c4c73b2c216d0ccb7981418.tar.bz2
Little more doc on QabstractItemModel and QML.
Diffstat (limited to 'doc')
-rw-r--r--doc/src/declarative/qdeclarativemodels.qdoc20
1 files changed, 17 insertions, 3 deletions
diff --git a/doc/src/declarative/qdeclarativemodels.qdoc b/doc/src/declarative/qdeclarativemodels.qdoc
index f7d1a73..e80824d 100644
--- a/doc/src/declarative/qdeclarativemodels.qdoc
+++ b/doc/src/declarative/qdeclarativemodels.qdoc
@@ -191,6 +191,23 @@ will be positioned by the view.
\section2 QAbstractItemModel
QAbstractItemModel provides the roles set via the QAbstractItemModel::setRoleNames() method.
+The default role names set by Qt are:
+
+\table
+\header
+\o Qt Role
+\o QML Role Name
+\row
+\o Qt::DisplayRole
+\o display
+\row
+\o Qt::DecorationRole
+\o decoration
+\endtable
+
+QAbstractItemModel presents a heirachy of tables. Views currently provided by QML
+can only display list data. In order to display child lists of a heirachical model
+use the VisualDataModel element with \e rootIndex set to a parent node.
\section2 QStringList
@@ -198,9 +215,6 @@ QAbstractItemModel provides the roles set via the QAbstractItemModel::setRoleNam
QStringList provides the contents of the list via the \e modelData role:
\table
-\header
-\o
-\o
\row
\o
\code