From a3f1e799e269eaecad0b380534764f098b071560 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 23 Jul 2017 19:03:49 +0200 Subject: Use a TextButton instead --- components/kube/contents/ui/AddresseeListEditor.qml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'components') diff --git a/components/kube/contents/ui/AddresseeListEditor.qml b/components/kube/contents/ui/AddresseeListEditor.qml index 873e0c6c..1f106dfd 100644 --- a/components/kube/contents/ui/AddresseeListEditor.qml +++ b/components/kube/contents/ui/AddresseeListEditor.qml @@ -78,20 +78,18 @@ Item { } } - MouseArea { + Item { height: Kube.Units.gridUnit * Kube.Units.smallSpacing * 2 width: parent.width - hoverEnabled: true - onClicked: { - lineEdit.visible = true - lineEdit.forceActiveFocus() - } - - Kube.Label { + Kube.TextButton { + id: button text: "+ " + qsTr("Add recipient") color: Kube.Colors.highlightColor - font.underline: parent.containsMouse + onClicked: { + lineEdit.visible = true + lineEdit.forceActiveFocus() + } } Kube.AutocompleteLineEdit { @@ -100,7 +98,6 @@ Item { left: parent.left right: parent.right } - visible: false placeholderText: "+ " + qsTr("Add recipient") @@ -108,7 +105,6 @@ Item { onSearchTermChanged: root.completer.searchString = searchTerm onAccepted: { root.added(text); - console.warn("Accepted input: ", text) clear() visible = false } -- cgit v1.2.3