diff options
Diffstat (limited to 'framework/qml/TreeView.qml')
-rw-r--r-- | framework/qml/TreeView.qml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/framework/qml/TreeView.qml b/framework/qml/TreeView.qml index 21345fb0..d7fed711 100644 --- a/framework/qml/TreeView.qml +++ b/framework/qml/TreeView.qml | |||
@@ -46,6 +46,18 @@ FocusScope { | |||
46 | return treeView.__model.mapRowToModelIndex(row) | 46 | return treeView.__model.mapRowToModelIndex(row) |
47 | } | 47 | } |
48 | 48 | ||
49 | function selectNext() { | ||
50 | treeView.__listView.incrementCurrentIndexBlocking() | ||
51 | treeView.__mouseArea.keySelect(Qt.NoModifier) | ||
52 | activated(treeView.selection.currentIndex) | ||
53 | } | ||
54 | |||
55 | function selectPrevious() { | ||
56 | treeView.__listView.decrementCurrentIndexBlocking() | ||
57 | treeView.__mouseArea.keySelect(Qt.NoModifier) | ||
58 | activated(treeView.selection.currentIndex) | ||
59 | } | ||
60 | |||
49 | Flickable { | 61 | Flickable { |
50 | id: flickableItem | 62 | id: flickableItem |
51 | 63 | ||