fix #LINQT-1432 progress bar text

This commit is contained in:
Gaelle Braud 2024-11-20 13:44:34 +01:00
parent b2d0c29d40
commit 0c851ed81a

View file

@ -19,6 +19,10 @@ ProgressBar {
TextMetrics{
id: textSize
text: mainItem.innerText
font {
pixelSize: 10 * DefaultStyle.dp
weight: 700 * DefaultStyle.dp
}
}
background: Rectangle {
@ -45,6 +49,7 @@ ProgressBar {
pixelSize: 10 * DefaultStyle.dp
weight: 700 * DefaultStyle.dp
}
width: textSize.advanceWidth
}
}
}