Show shortcut key in tool tooltips

In brackets. I couldn't translate it to an icon easily. It was possible but I'd have to create a giant mapping from every key to the key icons and add a bunch of icons and I don't think that's necessary.

Contributes to issue CURA-5634.
This commit is contained in:
Ghostkeeper 2018-08-10 11:22:33 +02:00
parent 4a22bb3b69
commit f247c328c6
No known key found for this signature in database
GPG Key ID: 5252B696FB5E7C7A

View File

@ -34,7 +34,7 @@ Item
height: childrenRect.height
Button
{
text: model.name
text: model.name + (model.shortcut ? (" (" + model.shortcut + ")") : "")
iconSource: (UM.Theme.getIcon(model.icon) != "") ? UM.Theme.getIcon(model.icon) : "file:///" + model.location + "/" + model.icon
checkable: true
checked: model.active