Commit 47690857 authored by Arjen Hiemstra's avatar Arjen Hiemstra Committed by Nate Graham

Properly indicate focus state of ToolButton

Set hasFocus to true so the style can render the toolbutton with a focus
indicator. Otherwise we get no indication that the toolbutton has focus.
parent 7220dad1
......@@ -42,7 +42,7 @@ T.ToolButton {
on: controlRoot.pressed || (controlRoot.checkable && controlRoot.checked)
hover: controlRoot.hovered
text: controlRoot.Kirigami.MnemonicData.mnemonicLabel
hasFocus: !controlRoot.flat && controlRoot.pressed
hasFocus: controlRoot.visualFocus || (!controlRoot.flat && controlRoot.pressed)
activeControl: controlRoot.isDefault ? "default" : "f"
raised: !controlRoot.flat
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment