diff --git a/src/controls/Styles/Desktop/MenuStyle.qml b/src/controls/Styles/Desktop/MenuStyle.qml index 60e73d2..afffe23 100644 --- a/src/controls/Styles/Desktop/MenuStyle.qml +++ b/src/controls/Styles/Desktop/MenuStyle.qml @@ -86,9 +86,6 @@ Style { elementType: __menuItemType text: styleData.text - property string textAndShorcut: text + (styleData.shortcut ? "\t" + styleData.shortcut : "") - contentWidth: textWidth(textAndShorcut) - contentHeight: textHeight(textAndShorcut) enabled: styleData.enabled selected: styleData.selected @@ -104,6 +101,10 @@ Style { "scrollerDirection": styleData.scrollerDirection, "icon": !!__menuItem && __menuItem.__icon } + + property string textAndShorcut: text + (styleData.shortcut ? "\t" + styleData.shortcut : "") + contentWidth: textWidth(textAndShorcut) + contentHeight: textHeight(textAndShorcut) } property Component scrollIndicator: menuItemPanel