Fix elide of TabButtons

Without fillWidth: true the width is unmanaged by the GridView

If the width is unmanaged it will fit the text

BUG: 434945
This commit is contained in:
David Edmundson 2021-04-04 23:08:31 +01:00
parent 239a48175e
commit a45bd75800

View File

@ -60,6 +60,7 @@ T.TabButton {
}
Label {
id: label
Layout.fillWidth: true
Layout.alignment: control.display != T.AbstractButton.TextBesideIcon || icon.source.length === 0 ? Qt.AlignCenter : Qt.AlignVCenter | Qt.AlignLeft
visible: text.length > 0 && control.display !== T.AbstractButton.IconOnly
text: control.Kirigami.MnemonicData.richTextLabel