summaryrefslogtreecommitdiff
path: root/src/controls/doc/src
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>2015-07-21 17:07:14 +0200
committerMitch Curtis <mitch.curtis@theqtcompany.com>2015-07-27 10:39:44 +0000
commit09d9ce27ab9ac29aaa36c6d54fe89064dfcde69f (patch)
treefb03cccd2afc67155362d7d6980a89b4633efff2 /src/controls/doc/src
parentdd9f2665b1f84f0ba8ed21f5c47b532b2dc4db87 (diff)
downloadqtquickcontrols-09d9ce27ab9ac29aaa36c6d54fe89064dfcde69f.tar.gz
TreeView: Add rootIndex property
Its purpose is the same as QAbstractItemView::rootIndex and allows to display only the part of the model data that is descendant of this index. The filesystembrowser example has been updated to only show files reachable from the user's home directory. [ChangeLog][TreeView] Added rootIndex property Change-Id: Ib8d9af4ce9d1f341ab509de3cc991773830ba9f4 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/controls/doc/src')
-rw-r--r--src/controls/doc/src/qtquickcontrols-treeview.qdoc13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/controls/doc/src/qtquickcontrols-treeview.qdoc b/src/controls/doc/src/qtquickcontrols-treeview.qdoc
index fb186059..a9d41b70 100644
--- a/src/controls/doc/src/qtquickcontrols-treeview.qdoc
+++ b/src/controls/doc/src/qtquickcontrols-treeview.qdoc
@@ -142,6 +142,19 @@
*/
/*!
+ \qmlproperty QModelIndex TreeView::rootIndex
+ The model index of the root item in the tree view. The root item is the
+ parent item to the view's top-level items. Only items descending from the
+ root item will be visible in the view.
+
+ Its default value is an invalid QModelIndex, which means the whole
+ model data is shown by the tree view (assigning \c undefined to this
+ proprety resets it to its default value.)
+
+ \since QtQuick.Controls 1.5
+*/
+
+/*!
\qmlproperty QModelIndex TreeView::currentIndex
The model index of the current row in the tree view.
*/