|
|
@ -121,8 +121,13 @@ Rectangle {
|
|
|
|
|
|
|
|
|
|
|
|
Text {
|
|
|
|
Text {
|
|
|
|
id: valueText
|
|
|
|
id: valueText
|
|
|
|
anchors.centerIn: parent
|
|
|
|
anchors.centerIn: canvas
|
|
|
|
|
|
|
|
|
|
|
|
width: Math.min(maximumWidth - 4*units.smallSpacing, implicitWidth)
|
|
|
|
width: Math.min(maximumWidth - 4*units.smallSpacing, implicitWidth)
|
|
|
|
|
|
|
|
height: canvas.height * 0.62
|
|
|
|
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
|
|
|
|
verticalAlignment: Text.AlignVCenter
|
|
|
|
|
|
|
|
|
|
|
|
elide: Text.ElideRight
|
|
|
|
elide: Text.ElideRight
|
|
|
|
|
|
|
|
|
|
|
|
text: {
|
|
|
|
text: {
|
|
|
@ -140,7 +145,7 @@ Rectangle {
|
|
|
|
|
|
|
|
|
|
|
|
return "";
|
|
|
|
return "";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
font.pixelSize: Math.max(0.55 * parent.minimumWidth, theme.defaultFont.pixelSize)
|
|
|
|
font.pixelSize: height
|
|
|
|
font.bold: true
|
|
|
|
font.bold: true
|
|
|
|
color: textWithBackgroundColor ? theme.backgroundColor : theme.textColor
|
|
|
|
color: textWithBackgroundColor ? theme.backgroundColor : theme.textColor
|
|
|
|
visible: showNumber || showText
|
|
|
|
visible: showNumber || showText
|
|
|
|