diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-06-13 14:24:35 +0200 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-06-13 14:24:35 +0200 |
commit | 70c355dc711ff8ab249e9878a166340da6b75bec (patch) | |
tree | 0f8df0f63b614f137e877882bf286fa3930f30f4 | |
parent | 551dc848b30ee9f3984149bc0a205c499b6f9d41 (diff) | |
download | kube-70c355dc711ff8ab249e9878a166340da6b75bec.tar.gz kube-70c355dc711ff8ab249e9878a166340da6b75bec.zip |
visual improvements for addressee editor
-rw-r--r-- | components/kube/contents/ui/AddresseeListEditor.qml | 43 |
1 files changed, 31 insertions, 12 deletions
diff --git a/components/kube/contents/ui/AddresseeListEditor.qml b/components/kube/contents/ui/AddresseeListEditor.qml index a1fb30d1..a4f1a207 100644 --- a/components/kube/contents/ui/AddresseeListEditor.qml +++ b/components/kube/contents/ui/AddresseeListEditor.qml | |||
@@ -71,19 +71,38 @@ Item { | |||
71 | } | 71 | } |
72 | } | 72 | } |
73 | } | 73 | } |
74 | Kube.AutocompleteLineEdit { | 74 | |
75 | id: lineEdit | 75 | MouseArea { |
76 | anchors { | 76 | height: Kube.Units.gridUnit * Kube.Units.smallSpacing * 2 |
77 | left: parent.left | 77 | width: parent.width |
78 | right: parent.right | 78 | hoverEnabled: true |
79 | |||
80 | onClicked: lineEdit.visible = true | ||
81 | |||
82 | Kube.Label { | ||
83 | text: "Add recipient" | ||
84 | color: Kube.Colors.highlightColor | ||
85 | font.underline: parent.containsMouse | ||
79 | } | 86 | } |
80 | placeholderText: "Add recepient" | 87 | |
81 | model: root.completer.model | 88 | Kube.AutocompleteLineEdit { |
82 | onSearchTermChanged: root.completer.searchString = searchTerm | 89 | id: lineEdit |
83 | onAccepted: { | 90 | anchors { |
84 | root.added(text); | 91 | left: parent.left |
85 | console.warn("Accepted input: ", text) | 92 | right: parent.right |
86 | clear() | 93 | } |
94 | |||
95 | visible: false | ||
96 | |||
97 | placeholderText: "Add recepient" | ||
98 | model: root.completer.model | ||
99 | onSearchTermChanged: root.completer.searchString = searchTerm | ||
100 | onAccepted: { | ||
101 | root.added(text); | ||
102 | console.warn("Accepted input: ", text) | ||
103 | clear() | ||
104 | visible = false | ||
105 | } | ||
87 | } | 106 | } |
88 | } | 107 | } |
89 | } | 108 | } |