From 31f1c8741b63b65e8ee5c70d52bfde543c22f086 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 9 Jul 2018 16:32:53 +0200 Subject: Tooltip for the automplete delegate as well --- framework/qml/AutocompleteLineEdit.qml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'framework/qml/AutocompleteLineEdit.qml') diff --git a/framework/qml/AutocompleteLineEdit.qml b/framework/qml/AutocompleteLineEdit.qml index e5368fe9..d6a32fbc 100644 --- a/framework/qml/AutocompleteLineEdit.qml +++ b/framework/qml/AutocompleteLineEdit.qml @@ -136,6 +136,11 @@ Kube.TextField { contentItem: Item { width: parent.width - padding * 2 height: parent.height - padding * 2 + MouseArea { + id: mouseArea + anchors.fill: parent + hoverEnabled: true + } Kube.Label{ anchors { verticalCenter: parent.verticalCenter @@ -145,6 +150,8 @@ Kube.TextField { text: model.text color: listDelegate.textColor elide: Text.ElideRight + ToolTip.visible: mouseArea.containsMouse + ToolTip.text: text } } } -- cgit v1.2.3