Index: sources/gui/qml/components/LabelValue.qml =================================================================== diff -u -r26af78da75502c56dcff8ad402e63d64a496f341 -rab7efbd73d4a4c0a0a10886629f9a5975ca08315 --- sources/gui/qml/components/LabelValue.qml (.../LabelValue.qml) (revision 26af78da75502c56dcff8ad402e63d64a496f341) +++ sources/gui/qml/components/LabelValue.qml (.../LabelValue.qml) (revision ab7efbd73d4a4c0a0a10886629f9a5975ca08315) @@ -11,44 +11,29 @@ property string topTextColor : Colors.textTextRectLabel property alias topTextFont : _topText.font - property string centerText : "" - property string centerTextColor : Colors.textTextRectLabel - property bool showCenterText : false - property string bottomText : "" property string bottomTextColor : Colors.textTextRectLabel - property alias bottomTextHeight : _bottomText.height - property int verticalSpacing : 0 - clip: false - Column { id: _column - anchors.horizontalCenter: parent.horizontalCenter - - spacing: verticalSpacing - - Text { id: _topText - text: _root.topText - color: topTextColor - font.pixelSize: Fonts.fontPixelTextRectLabel - verticalAlignment: Text.AlignBottom - horizontalAlignment: Text.AlignHCenter + Text { id: _topText + anchors { + top: parent.top + horizontalCenter: parent.horizontalCenter } - Text { id: _centerText - text: _root.centerText - color: centerTextColor - visible: showCenterText - font.pixelSize: Fonts.fontPixelTextRectExtra - horizontalAlignment: Text.AlignLeft - } + text: _root.topText + color: topTextColor + font.pixelSize: Fonts.fontPixelTextRectLabel + } - Text { id: _bottomText - text: _root.bottomText - color: bottomTextColor - font.pixelSize: Fonts.fontPixelTextRectExtra - horizontalAlignment: Text.AlignHCenter + Text { id: _bottomText + anchors { + top: _topText.bottom + horizontalCenter: _topText.horizontalCenter } + text: _root.bottomText + color: bottomTextColor + font.pixelSize: Fonts.fontPixelTextRectExtra } }