Index: sources/gui/qml/compounds/LabelUnitText.qml =================================================================== diff -u -rd948f4557217f1f0258e027a81e0b939a72fcae6 -r9976417452cd2e151697108f47483e132ebc0cfc --- sources/gui/qml/compounds/LabelUnitText.qml (.../LabelUnitText.qml) (revision d948f4557217f1f0258e027a81e0b939a72fcae6) +++ sources/gui/qml/compounds/LabelUnitText.qml (.../LabelUnitText.qml) (revision 9976417452cd2e151697108f47483e132ebc0cfc) @@ -39,11 +39,13 @@ } Item { id: _contentItem + objectName : "_contentItem" anchors.centerIn: parent width : childrenRect.width height : parent.height Text { id: _label + objectName : "_label" anchors { left : parent.left verticalCenter : parent.verticalCenter @@ -54,21 +56,23 @@ } Text { id: _unit + objectName : "_unit" anchors { left : _label.right leftMargin : 5 baseline : _label.baseline } - width : contentWidth - text : _root.unit.length > 0 ? ("(%1)").arg(_root.unit) : "" - color : _label.color + width : contentWidth + text : _root.unit.length > 0 ? ("(%1)").arg(_root.unit) : "" + color : _label.color font { pixelSize : Fonts.fontPixelContainerUnitSmall weight : Font.Thin } } Text { id: _value + objectName : "_value" anchors{ left : _unit.right leftMargin : Variables.defaultMargin @@ -78,8 +82,8 @@ horizontalAlignment : Text.AlignRight color : Colors.offWhite font { - pixelSize : Fonts.fontPixelContainerTitle - weight : Font.DemiBold + pixelSize : Fonts.fontPixelContainerTitle + weight : Font.DemiBold } } }