From 59e3c7f3fafb551f4636df064492226398aed1b1 Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Tue, 19 Apr 2016 15:44:18 +0200 Subject: Add focus visuals to default ItemDelegate Change-Id: I6a0f3a4d449ad14469f300a5f08ecc437c90c119 Reviewed-by: J-P Nurmi --- src/imports/controls/ItemDelegate.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/imports/controls/ItemDelegate.qml') diff --git a/src/imports/controls/ItemDelegate.qml b/src/imports/controls/ItemDelegate.qml index 7bd4fd58..b8a4f590 100644 --- a/src/imports/controls/ItemDelegate.qml +++ b/src/imports/controls/ItemDelegate.qml @@ -69,8 +69,8 @@ T.ItemDelegate { background: Rectangle { implicitWidth: 100 implicitHeight: 40 - visible: control.down || control.highlighted - color: control.down ? "#bdbebf" : "#eeeeee" + visible: control.down || control.highlighted || control.activeKeyFocus + color: control.activeKeyFocus ? (control.pressed ? "#cce0ff" : "#e5efff") : (control.down ? "#bdbebf" : "#eeeeee") } //! [background] } -- cgit v1.2.3