From 345fb099aa08c72d380fed3330cc8b9d088a3cb4 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Tue, 26 Apr 2016 12:42:10 +0200 Subject: 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 --- src/imports/controls/material/ToolButton.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/imports/controls/material/ToolButton.qml') diff --git a/src/imports/controls/material/ToolButton.qml b/src/imports/controls/material/ToolButton.qml index a02254c4..22a81c76 100644 --- a/src/imports/controls/material/ToolButton.qml +++ b/src/imports/controls/material/ToolButton.qml @@ -66,7 +66,7 @@ T.ToolButton { implicitHeight: 48 color: control.down ? control.Material.flatButtonPressColor : control.Material.flatButtonFocusColor - visible: control.enabled && (control.down || control.activeKeyFocus || control.checked || control.highlighted) + visible: control.enabled && (control.down || control.visualFocus || control.checked || control.highlighted) } //! [background] } -- cgit v1.2.3