From 1ce9c5aa3d911963b05daf1194f2ad7daab8e491 Mon Sep 17 00:00:00 2001 From: Rainer Keller Date: Tue, 10 Jun 2014 13:46:52 +0200 Subject: sensors: Display only 2 decimals Currently on Nexus2013 there are so many decimals printed that the label for the value is out of the screen. Change-Id: Ic6bb1a265a978cfbab0f42d6237b22e42b460818 Reviewed-by: Gatis Paeglis --- basicsuite/sensors/Light.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basicsuite/sensors/Light.qml b/basicsuite/sensors/Light.qml index f997efd..0cff8e6 100644 --- a/basicsuite/sensors/Light.qml +++ b/basicsuite/sensors/Light.qml @@ -83,7 +83,7 @@ Item { LightSensor { active: true onReadingChanged: { - illuminanceLevel.text = "Illuminance: " + reading.illuminance + illuminanceLevel.text = "Illuminance: " + reading.illuminance.toFixed(2); } } } -- cgit v1.2.3