Index: sources/gui/qml/compounds/LabelUnitContainer.qml =================================================================== diff -u -rb12853c86ef9e517667516dc3e47bca07349cedf -rc9764bd0ad823c5c1725d7c7f556290c2c459d4d --- sources/gui/qml/compounds/LabelUnitContainer.qml (.../LabelUnitContainer.qml) (revision b12853c86ef9e517667516dc3e47bca07349cedf) +++ sources/gui/qml/compounds/LabelUnitContainer.qml (.../LabelUnitContainer.qml) (revision c9764bd0ad823c5c1725d7c7f556290c2c459d4d) @@ -22,14 +22,15 @@ 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 + property int titleFontSize : Fonts.fontPixelDefaultButton + property int unitFontSize : Fonts.fontUnit height : cellHeight width : cellWidth @@ -47,23 +48,23 @@ anchors { verticalCenter : parent.verticalCenter left : parent.left - leftMargin : Variables.defaultMargin + leftMargin : Variables.minVGap + Variables.defaultMargin } spacing : 10 Text { id: _title anchors.verticalCenter : _titleRow.verticalCenter color : Colors.offWhite - font.pixelSize : Fonts.fontPixelContainerTitle + font.pixelSize : _root.titleFontSize } Text { id: _unit - anchors.bottom : _title.bottom + anchors.baseline: _title.baseline text : ("(%1)").arg(_root.unitText) color : Colors.offWhite - font.pixelSize : Fonts.fontPixelContainerUnit + font.pixelSize : _root.unitFontSize font.weight : Font.Thin - visible : _root.showUnit + visible : _root.unitText.length > 0 } IconButton { id : _editButton