Round sensor values in inline preview tiles

This commit is contained in:
Michael Zanetti 2019-03-14 12:30:14 +01:00
parent d7a4179d78
commit b01e8a62a3

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