From 060dacb2d13d93e0e8f5a2eaa39b478bfae74841 Mon Sep 17 00:00:00 2001 From: Konstantin Ritt Date: Wed, 20 Apr 2016 07:48:24 +0400 Subject: Fix-up the use of QQuickAbstractButton::down in delegates This complements eae24fccc57437 Change-Id: Ifdb918037f87c2f602b558ce6979b1669295b062 Reviewed-by: J-P Nurmi --- src/imports/controls/universal/SwitchDelegate.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/imports/controls/universal/SwitchDelegate.qml') 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 -- cgit v1.2.3