diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2016-04-26 12:42:10 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2016-04-26 13:31:18 +0000 |
commit | 345fb099aa08c72d380fed3330cc8b9d088a3cb4 (patch) | |
tree | 4cf28ead358bc333a27e6b794ca439ad27938289 /src/imports/controls/universal/SwipeDelegate.qml | |
parent | 67f3da65d7d11af025a9bdd54d08ca0bf764c3ce (diff) |
Control: rename activeKeyFocus to visualFocus
This is a bit more flexible, because the name is not strictly coupled
with key focus. We can even add a (re)setter later if we want. This
change only renames the property.
Change-Id: I6707e44040f584480a8712df1af0915ae2829d57
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/imports/controls/universal/SwipeDelegate.qml')
-rw-r--r-- | src/imports/controls/universal/SwipeDelegate.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imports/controls/universal/SwipeDelegate.qml b/src/imports/controls/universal/SwipeDelegate.qml index c908e517..02a2fa65 100644 --- a/src/imports/controls/universal/SwipeDelegate.qml +++ b/src/imports/controls/universal/SwipeDelegate.qml @@ -85,12 +85,12 @@ T.SwipeDelegate { background: Rectangle { color: !control.enabled ? control.Universal.chromeDisabledHighColor : (control.down ? control.Universal.chromeHighColor : - (control.activeKeyFocus || control.hovered ? control.Universal.chromeLowColor : control.Universal.chromeMediumColor)) + (control.visualFocus || control.hovered ? control.Universal.chromeLowColor : control.Universal.chromeMediumColor)) Rectangle { width: parent.width height: parent.height - visible: control.activeKeyFocus || control.highlighted + visible: control.visualFocus || control.highlighted color: control.Universal.accent opacity: control.Universal.theme === Universal.Light ? 0.4 : 0.6 } |