summaryrefslogtreecommitdiffstats
path: root/basicsuite
diff options
context:
space:
mode:
authorRainer Keller <rainer.keller@digia.com>2014-06-10 13:46:52 +0200
committerRainer Keller <rainer.keller@digia.com>2014-06-11 13:37:07 +0300
commit1ce9c5aa3d911963b05daf1194f2ad7daab8e491 (patch)
treef17c1d8a2f6c5019042ef6fcdec9c78f761b44f8 /basicsuite
parent40a1d5ce549b9cbdc0df883a343289cc21f88a10 (diff)
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 <gatis.paeglis@digia.com>
Diffstat (limited to 'basicsuite')
-rw-r--r--basicsuite/sensors/Light.qml2
1 files changed, 1 insertions, 1 deletions
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);
}
}
}