diff options
-rw-r--r-- | components/kube/contents/ui/Kube.qml | 5 | ||||
-rw-r--r-- | framework/qml/MailListView.qml | 7 |
2 files changed, 10 insertions, 2 deletions
diff --git a/components/kube/contents/ui/Kube.qml b/components/kube/contents/ui/Kube.qml index 1a0847fa..6bddf5d8 100644 --- a/components/kube/contents/ui/Kube.qml +++ b/components/kube/contents/ui/Kube.qml | |||
@@ -66,6 +66,11 @@ Controls2.ApplicationWindow { | |||
66 | onActivated: Qt.quit() | 66 | onActivated: Qt.quit() |
67 | } | 67 | } |
68 | Shortcut { | 68 | Shortcut { |
69 | onActivated: Kube.Fabric.postMessage(Kube.Messages.search, {}) | ||
70 | sequence: StandardKey.Find | ||
71 | |||
72 | } | ||
73 | Shortcut { | ||
69 | id: syncShortcut | 74 | id: syncShortcut |
70 | property variant folder: null | 75 | property variant folder: null |
71 | sequence: StandardKey.Refresh | 76 | sequence: StandardKey.Refresh |
diff --git a/framework/qml/MailListView.qml b/framework/qml/MailListView.qml index 042196e4..6088e500 100644 --- a/framework/qml/MailListView.qml +++ b/framework/qml/MailListView.qml | |||
@@ -46,7 +46,8 @@ FocusScope { | |||
46 | Kube.Listener { | 46 | Kube.Listener { |
47 | filter: Kube.Messages.search | 47 | filter: Kube.Messages.search |
48 | onMessageReceived: { | 48 | onMessageReceived: { |
49 | mailListModel.filter = message.filterString | 49 | filterField.visible = true |
50 | find.forceActiveFocus() | ||
50 | } | 51 | } |
51 | } | 52 | } |
52 | 53 | ||
@@ -72,8 +73,8 @@ FocusScope { | |||
72 | id: filterField | 73 | id: filterField |
73 | Layout.fillWidth: true | 74 | Layout.fillWidth: true |
74 | height: Kube.Units.gridUnit * 2 | 75 | height: Kube.Units.gridUnit * 2 |
75 | |||
76 | color: Kube.Colors.buttonColor | 76 | color: Kube.Colors.buttonColor |
77 | visible: false | ||
77 | 78 | ||
78 | RowLayout { | 79 | RowLayout { |
79 | anchors { | 80 | anchors { |
@@ -92,9 +93,11 @@ FocusScope { | |||
92 | } | 93 | } |
93 | 94 | ||
94 | Kube.TextField { | 95 | Kube.TextField { |
96 | id: find | ||
95 | Layout.fillWidth: true | 97 | Layout.fillWidth: true |
96 | placeholderText: "Filter..." | 98 | placeholderText: "Filter..." |
97 | onTextChanged: mailListModel.filter = text | 99 | onTextChanged: mailListModel.filter = text |
100 | focus: true | ||
98 | } | 101 | } |
99 | } | 102 | } |
100 | } | 103 | } |