diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-04-24 21:51:24 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-04-24 21:51:24 +0200 |
commit | b3223155b178427354b44f05167d0afba0926cbd (patch) | |
tree | 25021116a0f465a6973e36b668945080f3b9fc4b /components | |
parent | 4ba8c5b72fd7a3db6e593853c4669750dc6dd2a2 (diff) | |
download | kube-b3223155b178427354b44f05167d0afba0926cbd.tar.gz kube-b3223155b178427354b44f05167d0afba0926cbd.zip |
Another bunch of controllers gone
Diffstat (limited to 'components')
-rw-r--r-- | components/kube/contents/ui/Kube.qml | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/components/kube/contents/ui/Kube.qml b/components/kube/contents/ui/Kube.qml index 8092a073..b3bee859 100644 --- a/components/kube/contents/ui/Kube.qml +++ b/components/kube/contents/ui/Kube.qml | |||
@@ -63,18 +63,6 @@ Controls2.ApplicationWindow { | |||
63 | } | 63 | } |
64 | } | 64 | } |
65 | 65 | ||
66 | //Controller | ||
67 | //TODO replace | ||
68 | Kube.FolderController { | ||
69 | id: folderController | ||
70 | } | ||
71 | Kube.Listener { | ||
72 | id: controllerListener | ||
73 | filter: Kube.Messages.folderSelection | ||
74 | onMessageReceived: { | ||
75 | folderController.folder = message.folder | ||
76 | } | ||
77 | } | ||
78 | 66 | ||
79 | //Model | 67 | //Model |
80 | Kube.AccountsModel { | 68 | Kube.AccountsModel { |
@@ -84,9 +72,17 @@ Controls2.ApplicationWindow { | |||
84 | 72 | ||
85 | //BEGIN Shortcuts | 73 | //BEGIN Shortcuts |
86 | Shortcut { | 74 | Shortcut { |
75 | id: syncShortcut | ||
76 | property variant folder: null | ||
87 | sequence: StandardKey.Refresh | 77 | sequence: StandardKey.Refresh |
88 | onActivated: folderController.synchronizeAction.execute() | 78 | enabled: !!folder |
89 | enabled: folderController.synchronizeAction.enabled | 79 | onActivated: Kube.Fabric.postMessage(Kube.Messages.synchronize, {"folder": folder}) |
80 | } | ||
81 | Kube.Listener { | ||
82 | filter: Kube.Messages.folderSelection | ||
83 | onMessageReceived: { | ||
84 | syncShortcut.folder = message.folder | ||
85 | } | ||
90 | } | 86 | } |
91 | //END Shortcuts | 87 | //END Shortcuts |
92 | 88 | ||