aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/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/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/SwitchDelegate.qml')
-rw-r--r--src/imports/controls/SwitchDelegate.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imports/controls/SwitchDelegate.qml b/src/imports/controls/SwitchDelegate.qml
index e7736474..b6856a90 100644
--- a/src/imports/controls/SwitchDelegate.qml
+++ b/src/imports/controls/SwitchDelegate.qml
@@ -78,8 +78,8 @@ T.SwitchDelegate {
background: Rectangle {
implicitWidth: 100
implicitHeight: 40
- visible: control.pressed || control.highlighted
- color: control.pressed ? "#bdbebf" : "#eeeeee"
+ visible: control.down || control.highlighted
+ color: control.down ? "#bdbebf" : "#eeeeee"
}
//! [background]
}