From b01e8a62a3667c3ea9d5f6e896d4f374547bb35c Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Thu, 14 Mar 2019 12:30:14 +0100 Subject: [PATCH] Round sensor values in inline preview tiles --- nymea-app/ui/mainviews/DevicesPageDelegate.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nymea-app/ui/mainviews/DevicesPageDelegate.qml b/nymea-app/ui/mainviews/DevicesPageDelegate.qml index 5528ebe4..422f9478 100644 --- a/nymea-app/ui/mainviews/DevicesPageDelegate.qml +++ b/nymea-app/ui/mainviews/DevicesPageDelegate.qml @@ -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