Index: sources/gui/qml/compounds/LabelUnitContainer.qml =================================================================== diff -u -rb12853c86ef9e517667516dc3e47bca07349cedf -r24f141c96bdd5d4043e6ff05ea7ad962f63faabc --- sources/gui/qml/compounds/LabelUnitContainer.qml (.../LabelUnitContainer.qml) (revision b12853c86ef9e517667516dc3e47bca07349cedf) +++ sources/gui/qml/compounds/LabelUnitContainer.qml (.../LabelUnitContainer.qml) (revision 24f141c96bdd5d4043e6ff05ea7ad962f63faabc) @@ -22,14 +22,13 @@ import "qrc:/pages/pretreatment" Rectangle { id: _root - property Item contentItem : null - property alias contentArea : _contentArea + property Item contentItem : null + property alias contentArea : _contentArea - property alias text : _title.text - property string unitText: "" - property bool valid : true - property bool showUnit : true - property bool showEdit : false + property alias text : _title.text + property string unitText : "" + property bool valid : true + property bool showEdit : false height : cellHeight width : cellWidth @@ -58,12 +57,12 @@ } Text { id: _unit - anchors.bottom : _title.bottom + anchors.baseline: _title.baseline text : ("(%1)").arg(_root.unitText) color : Colors.offWhite font.pixelSize : Fonts.fontPixelContainerUnit font.weight : Font.Thin - visible : _root.showUnit + visible : _root.unitText.length > 0 } IconButton { id : _editButton