diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-04-17 23:13:41 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-04-17 23:13:41 +0200 |
commit | 0ad2650fd4084c7c7518b80d0f2d3f1275d89f28 (patch) | |
tree | bc6b08c002cf3a9280500a8820e258ac0ce2a975 /framework/qml/TreeView.qml | |
parent | 8bac76742270829a0e8753eb53a1cc7384dda323 (diff) | |
download | kube-0ad2650fd4084c7c7518b80d0f2d3f1275d89f28.tar.gz kube-0ad2650fd4084c7c7518b80d0f2d3f1275d89f28.zip |
Always select the first index (INBOX) in the folderlist initially.
Diffstat (limited to 'framework/qml/TreeView.qml')
-rw-r--r-- | framework/qml/TreeView.qml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/framework/qml/TreeView.qml b/framework/qml/TreeView.qml index d7fed711..ec249eb9 100644 --- a/framework/qml/TreeView.qml +++ b/framework/qml/TreeView.qml | |||
@@ -58,6 +58,11 @@ FocusScope { | |||
58 | activated(treeView.selection.currentIndex) | 58 | activated(treeView.selection.currentIndex) |
59 | } | 59 | } |
60 | 60 | ||
61 | function selectRootIndex() { | ||
62 | treeView.selection.setCurrentIndex(model.index(0, 0), ItemSelectionModel.ClearAndSelect) | ||
63 | activated(treeView.selection.currentIndex) | ||
64 | } | ||
65 | |||
61 | Flickable { | 66 | Flickable { |
62 | id: flickableItem | 67 | id: flickableItem |
63 | 68 | ||