Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Row {
- anchors {
- top: titleText.bottom
- //horizontalCenter: parent.horizontalCenter
- //horizontalCenterOffset: ( valuesText.contentWidth - valuesText.width ) / 2.0
- left: titleText.left
- bottom: parent.bottom
- topMargin: App.style.suzukiDatabox.valueHeightMargin
- bottomMargin: App.style.suzukiDatabox.valueHeightMargin
- }
- //width: valuesText.width + unitText.width + valuesText.calculatedRightMargin
- Text {
- id: valuesText
- width: implicitWidth
- height: parent.height
- text: _isValueCombined
- ? model.value1 + "\n" + model.value2
- : model.value1
- maximumLineCount: _isValueCombined ? 2 : 1
- color: paletteSwitcher.colorSet.textColor
- font.pixelSize: App.style.suzukiDatabox.valueFontSize
- font.family: App.style.suzukiDatabox.fontFamily
- fontSizeMode: Text.Fit
- verticalAlignment: Text.AlignVCenter
- horizontalAlignment: Text.AlignLeft
- }
- Text {
- id: unitText
- height: implicitHeight
- anchors.left: valuesText.right
- anchors.leftMargin: 5
- anchors.baseline: valuesText.baseline
- width: implicitWidth
- visible: !_isValueCombined
- text: model.unit
- color: paletteSwitcher.colorSet.textColor
- font.pixelSize: App.style.suzukiDatabox.unitFontSize
- font.family: App.style.suzukiDatabox.fontFamily
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement