diff options
Diffstat (limited to 'framework/qml/FolderListView.qml')
-rw-r--r-- | framework/qml/FolderListView.qml | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/framework/qml/FolderListView.qml b/framework/qml/FolderListView.qml index 7800e98d..5e2f41fc 100644 --- a/framework/qml/FolderListView.qml +++ b/framework/qml/FolderListView.qml | |||
@@ -18,25 +18,23 @@ | |||
18 | */ | 18 | */ |
19 | 19 | ||
20 | import QtQuick 2.4 | 20 | import QtQuick 2.4 |
21 | import QtQuick.Controls 1.4 | 21 | import QtQuick.Controls 2 |
22 | import QtQuick.Controls.Styles 1.4 | 22 | import QtQuick.Controls 1 as Controls1 |
23 | import QtQuick.Layouts 1.1 | ||
24 | import QtQml.Models 2.2 | ||
25 | 23 | ||
26 | import org.kube.framework 1.0 as Kube | 24 | import org.kube.framework 1.0 as Kube |
27 | 25 | ||
28 | Kube.TreeView { | 26 | Kube.TreeView { |
29 | id: treeView | 27 | id: root |
30 | property variant accountId | 28 | property variant accountId |
31 | 29 | ||
32 | TableViewColumn { | 30 | Controls1.TableViewColumn { |
33 | title: "Name" | 31 | title: "Name" |
34 | role: "name" | 32 | role: "name" |
35 | } | 33 | } |
36 | 34 | ||
37 | model: Kube.FolderListModel { | 35 | model: Kube.FolderListModel { |
38 | id: folderListModel | 36 | id: folderListModel |
39 | accountId: treeView.accountId | 37 | accountId: root.accountId |
40 | } | 38 | } |
41 | 39 | ||
42 | onActivated: { | 40 | onActivated: { |