diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-04-11 12:46:55 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-04-11 13:04:45 +0000 |
commit | e7b42b4de0d9148e53a245ffd4eb26338fd9f8dc (patch) | |
tree | 07b0ce7fc52ff61ee9dbdff1f45456ebe2875eca /src/imports/controls/material/SwipeDelegate.qml | |
parent | 8fd632c65e215925fed12e3b21ab98b77382e3ab (diff) |
Use Control.activeKeyFocus instead of Item.activeFocus
This makes the controls visualize focus only when interacting with
keys, so this basically allows us to set for example Qt.StrongFocus
policy by default on buttons and friends.
Change-Id: I6c81c58b7acfd2bc592bdd12d804e7e48ee65e95
Task-number: QTBUG-51796
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/imports/controls/material/SwipeDelegate.qml')
-rw-r--r-- | src/imports/controls/material/SwipeDelegate.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/controls/material/SwipeDelegate.qml b/src/imports/controls/material/SwipeDelegate.qml index 600eb480..34d546d7 100644 --- a/src/imports/controls/material/SwipeDelegate.qml +++ b/src/imports/controls/material/SwipeDelegate.qml @@ -154,7 +154,7 @@ T.SwipeDelegate { background: Rectangle { color: !control.enabled ? control.Material.swipeDelegateDisabledColor : (control.pressed ? control.Material.swipeDelegatePressColor : - (control.activeFocus || control.hovered ? control.Material.swipeDelegateHoverColor : control.Material.swipeDelegateColor)) + (control.activeKeyFocus || control.hovered ? control.Material.swipeDelegateHoverColor : control.Material.swipeDelegateColor)) Behavior on x { enabled: !control.pressed |