diff options
author | Konstantin Ritt <ritt.ks@gmail.com> | 2016-04-20 07:48:24 +0400 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2016-04-21 06:31:15 +0000 |
commit | 060dacb2d13d93e0e8f5a2eaa39b478bfae74841 (patch) | |
tree | b93ac8b256f5197091b515da4a460e9cced4929d /src/imports/controls/SwitchDelegate.qml | |
parent | 0cf1038aa73cdbdcf4d18d2d6c2fdd4d08311fc9 (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.qml | 4 |
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] } |