Commit a7fcb858 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Aleix Pol Gonzalez
Browse files

Address the keyboard shortcut tooltip

BUG: 438916


(cherry picked from commit 979fa085)
parent ec3ef111
......@@ -27,9 +27,9 @@ Kirigami.BasicListItem
Kirigami.MnemonicData.label: action.text
label: Kirigami.MnemonicData.richTextLabel
readonly property var tooltip: QQC2.ToolTip {
text: action.shortcut ? action.shortcut : p0.nativeText
}
QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay
QQC2.ToolTip.visible: hovered && p0.nativeText.length > 0
QQC2.ToolTip.text: p0.nativeText
readonly property var p0: Shortcut {
sequence: item.Kirigami.MnemonicData.sequence
......
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