aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/material/ItemDelegate.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-12-03 13:21:04 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-12-03 17:18:14 +0000
commit8d44f46e65ea38155b70c069a180bf0755bd9289 (patch)
treef19b8a8954c816c3864b7c63f21266869c3c13f7 /src/imports/controls/material/ItemDelegate.qml
parent5801239f70614e94f4a977b4122079c4ce2c232c (diff)
ItemDelegate: implement highlighted state
Change-Id: I6c4cdd97fcdaa86c2bdc5a8f465c2d9b6eddcf13 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/imports/controls/material/ItemDelegate.qml')
-rw-r--r--src/imports/controls/material/ItemDelegate.qml1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/imports/controls/material/ItemDelegate.qml b/src/imports/controls/material/ItemDelegate.qml
index 73a63397..e6b15467 100644
--- a/src/imports/controls/material/ItemDelegate.qml
+++ b/src/imports/controls/material/ItemDelegate.qml
@@ -146,6 +146,7 @@ T.ItemDelegate {
//! [background]
background: Rectangle {
+ visible: control.pressed || control.highlighted
color: control.pressed ? control.Material.flatButtonPressColor : control.Material.backgroundColor
}
//! [background]