Merge PR #163: Round sensor values in inline preview tiles

This commit is contained in:
Jenkins 2019-03-15 15:10:25 +01:00
commit 513586bfa5

View File

@ -501,7 +501,7 @@ MainPageTile {
Label {
text: sensorsRoot.shownStateType
? sensorsRoot.device.states.getState(shownStateType.id).value + " " + sensorsRoot.shownStateType.unitString
? Math.round(sensorsRoot.device.states.getState(shownStateType.id).value * 100) / 100 + " " + sensorsRoot.shownStateType.unitString
: ""
// font.pixelSize: app.smallFont
Layout.fillWidth: true