diff options
Diffstat (limited to 'components/package/contents/ui/MailListView.qml')
-rw-r--r-- | components/package/contents/ui/MailListView.qml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/components/package/contents/ui/MailListView.qml b/components/package/contents/ui/MailListView.qml index 35fd4ec9..97c1a0d4 100644 --- a/components/package/contents/ui/MailListView.qml +++ b/components/package/contents/ui/MailListView.qml | |||
@@ -31,6 +31,7 @@ Item { | |||
31 | property variant currentMail: null | 31 | property variant currentMail: null |
32 | property bool isDraft : false | 32 | property bool isDraft : false |
33 | property int currentIndex | 33 | property int currentIndex |
34 | property string filterString: searchBar.text; | ||
34 | 35 | ||
35 | onParentFolderChanged: { | 36 | onParentFolderChanged: { |
36 | currentMail = null | 37 | currentMail = null |
@@ -88,10 +89,17 @@ Item { | |||
88 | } | 89 | } |
89 | } | 90 | } |
90 | 91 | ||
92 | TextField { | ||
93 | id: searchBar | ||
94 | anchors.top: toolbar.bottom | ||
95 | width: parent.width | ||
96 | placeholderText: qsTr("Filter...") | ||
97 | } | ||
98 | |||
91 | ListView { | 99 | ListView { |
92 | id: listView | 100 | id: listView |
93 | 101 | ||
94 | anchors.top: toolbar.bottom | 102 | anchors.top: searchBar.bottom |
95 | 103 | ||
96 | width: parent.width | 104 | width: parent.width |
97 | height: parent.height - toolbar.height | 105 | height: parent.height - toolbar.height |
@@ -120,6 +128,7 @@ Item { | |||
120 | 128 | ||
121 | model: KubeFramework.MailListModel { | 129 | model: KubeFramework.MailListModel { |
122 | parentFolder: root.parentFolder | 130 | parentFolder: root.parentFolder |
131 | filter: root.filterString | ||
123 | } | 132 | } |
124 | 133 | ||
125 | delegate: Item { | 134 | delegate: Item { |