aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/universal/SwitchDelegate.qml
diff options
context:
space:
mode:
authorKonstantin Ritt <ritt.ks@gmail.com>2016-04-20 07:48:24 +0400
committerJ-P Nurmi <jpnurmi@qt.io>2016-04-21 06:31:15 +0000
commit060dacb2d13d93e0e8f5a2eaa39b478bfae74841 (patch)
treeb93ac8b256f5197091b515da4a460e9cced4929d /src/imports/controls/universal/SwitchDelegate.qml
parent0cf1038aa73cdbdcf4d18d2d6c2fdd4d08311fc9 (diff)
Fix-up the use of QQuickAbstractButton::down in delegates
This complements eae24fccc57437 Change-Id: Ifdb918037f87c2f602b558ce6979b1669295b062 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src/imports/controls/universal/SwitchDelegate.qml')
-rw-r--r--src/imports/controls/universal/SwitchDelegate.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imports/controls/universal/SwitchDelegate.qml b/src/imports/controls/universal/SwitchDelegate.qml
index 4deca436..d53f93d3 100644
--- a/src/imports/controls/universal/SwitchDelegate.qml
+++ b/src/imports/controls/universal/SwitchDelegate.qml
@@ -82,8 +82,8 @@ T.SwitchDelegate {
//! [background]
background: Rectangle {
- visible: control.pressed || control.highlighted || control.activeFocus
- color: control.pressed ? control.Universal.listMediumColor : control.Universal.altMediumLowColor
+ visible: control.down || control.highlighted || control.activeFocus
+ color: control.down ? control.Universal.listMediumColor : control.Universal.altMediumLowColor
Rectangle {
width: parent.width
height: parent.height