Fix truncated text.
This commit is contained in:
parent
946adfb020
commit
93bafc3700
1 changed files with 2 additions and 1 deletions
|
|
@ -29,6 +29,7 @@ Button {
|
||||||
Layout.preferredHeight: mainItem.icon.height
|
Layout.preferredHeight: mainItem.icon.height
|
||||||
}
|
}
|
||||||
Text {
|
Text {
|
||||||
|
id: textItem
|
||||||
horizontalAlignment: Text.AlignLeft
|
horizontalAlignment: Text.AlignLeft
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
Layout.preferredWidth: textMetrics.advanceWidth
|
Layout.preferredWidth: textMetrics.advanceWidth
|
||||||
|
|
@ -51,7 +52,7 @@ Button {
|
||||||
TextMetrics {
|
TextMetrics {
|
||||||
id: textMetrics
|
id: textMetrics
|
||||||
text: mainItem.text
|
text: mainItem.text
|
||||||
font.bold: true
|
font: textItem.font
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Item {Layout.fillWidth: true}
|
Item {Layout.fillWidth: true}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue