Fix the alignment of the label of the toolbutton

When only a label exists in a toolbutton, without filling the width of the rowlayout, the label is not properly aligned in the center.

Differential Revision: https://phabricator.kde.org/D21415
This commit is contained in:
Dimitris Kardarakos 2019-05-26 17:27:42 +03:00
parent adb9998988
commit cd8b6b71ce

View File

@ -53,6 +53,7 @@ T.ToolButton {
source: control.icon ? (control.icon.name || control.icon.source) : ""
}
Label {
Layout.fillWidth: true
visible: text.length > 0
text: control.Kirigami.MnemonicData.richTextLabel
font: control.font