Fix eliding button text
Setting minimumWidth to implicitWidth forces overflowing text instead of eliding it. REVIEW: 125201
This commit is contained in:
parent
d6e5d81a59
commit
0df4823e8b
@ -69,7 +69,6 @@ QtQuickControlStyle.ButtonStyle {
|
|||||||
|
|
||||||
PlasmaComponents.Label {
|
PlasmaComponents.Label {
|
||||||
id: label
|
id: label
|
||||||
Layout.minimumWidth: implicitWidth
|
|
||||||
text: QtQuickControlsPrivate.StyleHelpers.stylizeMnemonics(control.text)
|
text: QtQuickControlsPrivate.StyleHelpers.stylizeMnemonics(control.text)
|
||||||
font: control.font || theme.defaultFont
|
font: control.font || theme.defaultFont
|
||||||
visible: control.text != ""
|
visible: control.text != ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user