aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/ItemDelegate.qml
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@theqtcompany.com>2016-04-19 15:44:18 +0200
committerMitch Curtis <mitch.curtis@theqtcompany.com>2016-04-20 08:48:50 +0000
commit59e3c7f3fafb551f4636df064492226398aed1b1 (patch)
treee2da41115b3b2da38faa233e4b633ebc795c889f /src/imports/controls/ItemDelegate.qml
parent3f0ce410884254a3cb6beb322bd910ac1525052c (diff)
Add focus visuals to default ItemDelegate
Change-Id: I6a0f3a4d449ad14469f300a5f08ecc437c90c119 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src/imports/controls/ItemDelegate.qml')
-rw-r--r--src/imports/controls/ItemDelegate.qml4
1 files changed, 2 insertions, 2 deletions
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]
}