From f33a17669bc38bb62ebef0ac0a64bd2f5ed683c0 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 5 Jul 2018 15:37:14 +0200 Subject: Track focused state centrally --- framework/qml/ListDelegate.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/qml/ListDelegate.qml b/framework/qml/ListDelegate.qml index 196148cb..4d0290d9 100644 --- a/framework/qml/ListDelegate.qml +++ b/framework/qml/ListDelegate.qml @@ -28,6 +28,7 @@ T.ItemDelegate { property alias border: background.border property color textColor: highlighted ? Kube.Colors.highlightedTextColor : Kube.Colors.textColor property color disabledTextColor: highlighted ? Kube.Colors.highlightedTextColor : Kube.Colors.disabledTextColor + property bool focused: root.hovered || root.activeFocus height: Kube.Units.gridUnit * 3 width: root.ListView.view.width @@ -44,7 +45,7 @@ T.ItemDelegate { border.color: Kube.Colors.buttonColor border.width: 1 color: Kube.Colors.viewBackgroundColor - focused: root.hovered || root.activeFocus + focused: root.focused selected: root.highlighted } } -- cgit v1.2.3