D21944: Show shortcut in menu item when specified
Aleix Pol Gonzalez
noreply at phabricator.kde.org
Fri Jun 21 00:35:38 BST 2019
apol added inline comments.
INLINE COMMENTS
> MenuItem.qml:98
> + font: controlRoot.font
> + color: (controlRoot.highlighted || controlRoot.hovered) ? Kirigami.Theme.highlightedTextColor : Kirigami.Theme.textColor
> + horizontalAlignment: Text.AlignRight
label.color?
> MenuItem.qml:103
> + Item {
> + Layout.preferredWidth: Kirigami.Units.smallSpacing
> + }
Use Layout.rightMargin on the shortcut object.
https://doc.qt.io/qt-5/qml-qtquick-layouts-layout.html#rightMargin-attached-prop
REPOSITORY
R858 Qt Quick Controls 2: Desktop Style
BRANCH
menu_item
REVISION DETAIL
https://phabricator.kde.org/D21944
To: astippich, mart, ngraham
Cc: apol, plasma-devel, LeGast00n, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20190620/21e20391/attachment-0001.html>
More information about the Plasma-devel
mailing list