summaryrefslogtreecommitdiffstats
path: root/components/package/contents/ui/FocusComposer.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-11-17 12:04:41 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-11-17 17:57:36 +0100
commit56d0411b0a8bce305220adbf12f6b859abf9f431 (patch)
treeec1e6aeb0bd1b73b6c59d48eb3fa9d623a69a0b4 /components/package/contents/ui/FocusComposer.qml
parentc633f7c5fce50db60035792526b6c7e84b51149f (diff)
downloadkube-56d0411b0a8bce305220adbf12f6b859abf9f431.tar.gz
kube-56d0411b0a8bce305220adbf12f6b859abf9f431.zip
AutocompleteLineEdit
Diffstat (limited to 'components/package/contents/ui/FocusComposer.qml')
-rw-r--r--components/package/contents/ui/FocusComposer.qml35
1 files changed, 23 insertions, 12 deletions
diff --git a/components/package/contents/ui/FocusComposer.qml b/components/package/contents/ui/FocusComposer.qml
index 741faeba..f2ec2826 100644
--- a/components/package/contents/ui/FocusComposer.qml
+++ b/components/package/contents/ui/FocusComposer.qml
@@ -93,29 +93,30 @@ Controls2.Popup {
93 text: "To" 93 text: "To"
94 } 94 }
95 95
96 RowLayout { 96 AutocompleteLineEdit {
97 Layout.fillWidth: true 97 id: to
98
99 Controls.TextField {
100 id: to
101 98
102 Layout.fillWidth: true 99 Layout.fillWidth: true
103 100
104 text: composer.to 101 text: composer.to
102 onTextChanged: {
103 composer.to = text;
104 }
105 105
106 onTextChanged: { 106 model: composer.recepientAutocompletionModel
107 composer.to = text; 107 onSearchTermChanged: {
108 } 108 composer.recepientSearchString = searchTerm
109 } 109 }
110 } 110 }
111 111
112
112 Kirigami.Label { 113 Kirigami.Label {
113 text: "Cc" 114 text: "Cc"
114 115
115 visible: cc.visible 116 visible: cc.visible
116 } 117 }
117 118
118 Controls.TextField { 119 AutocompleteLineEdit {
119 id: cc 120 id: cc
120 121
121 Layout.fillWidth: true 122 Layout.fillWidth: true
@@ -127,6 +128,11 @@ Controls2.Popup {
127 onTextChanged: { 128 onTextChanged: {
128 composer.cc = text; 129 composer.cc = text;
129 } 130 }
131
132 model: composer.recepientAutocompletionModel
133 onSearchTermChanged: {
134 composer.recepientSearchString = searchTerm
135 }
130 } 136 }
131 137
132 Kirigami.Label { 138 Kirigami.Label {
@@ -135,7 +141,7 @@ Controls2.Popup {
135 visible: bcc.visible 141 visible: bcc.visible
136 } 142 }
137 143
138 Controls.TextField { 144 AutocompleteLineEdit {
139 id: bcc 145 id: bcc
140 146
141 Layout.fillWidth: true 147 Layout.fillWidth: true
@@ -147,6 +153,11 @@ Controls2.Popup {
147 onTextChanged: { 153 onTextChanged: {
148 composer.bcc = text; 154 composer.bcc = text;
149 } 155 }
156
157 model: composer.recepientAutocompletionModel
158 onSearchTermChanged: {
159 composer.recepientSearchString = searchTerm
160 }
150 } 161 }
151 } 162 }
152 163