summaryrefslogtreecommitdiffstats
path: root/examples/bluetooth/heartlistener/assets/results.qml
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@digia.com>2014-07-10 14:32:42 +0200
committerAlex Blasche <alexander.blasche@digia.com>2014-07-16 08:28:44 +0200
commit8bf7e9986e359df46bb351dfb76e4140d9b04da7 (patch)
tree0c55a5ddb5e258d34b853f9880cb48b4d2557156 /examples/bluetooth/heartlistener/assets/results.qml
parentda06842d9382147ba8ea3cb77928c75ca7721a63 (diff)
Port HeartRateListener Example to new API.
Change-Id: If3af869a8e5d380592d24b7482ff8eb34a11e6a0 Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Diffstat (limited to 'examples/bluetooth/heartlistener/assets/results.qml')
-rw-r--r--examples/bluetooth/heartlistener/assets/results.qml19
1 files changed, 10 insertions, 9 deletions
diff --git a/examples/bluetooth/heartlistener/assets/results.qml b/examples/bluetooth/heartlistener/assets/results.qml
index 78c08873..bdc7147d 100644
--- a/examples/bluetooth/heartlistener/assets/results.qml
+++ b/examples/bluetooth/heartlistener/assets/results.qml
@@ -1,6 +1,7 @@
/***************************************************************************
**
** Copyright (C) 2014 BlackBerry Limited. All rights reserved.
+** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the examples of the QtBluetooth module of the Qt Toolkit.
@@ -51,7 +52,7 @@ Rectangle {
var t = heartRate.time;
var min = Math.floor(t/60);
var sec = t%60;
- var r = min + " min " + sec + " sec "
+ var r = min + " min " + sec + " sec ";
return r;
}
@@ -198,7 +199,7 @@ Rectangle {
font.pixelSize: 40; font.bold: true
anchors.top: averageHR.bottom
anchors.horizontalCenter: parent.horizontalCenter
- anchors.topMargin: 20
+ anchors.topMargin: 10
color: "#3870BA"
text: heartRate.average
}
@@ -208,9 +209,9 @@ Rectangle {
font.pixelSize: 30;
anchors.top: averageHRt.bottom
anchors.horizontalCenter: parent.horizontalCenter
- anchors.topMargin: 20
+ anchors.topMargin: 10
color: "#3870BA"
- text: "Seconds measured "
+ text: "Seconds measured:"
}
Text {
@@ -218,7 +219,7 @@ Rectangle {
font.pixelSize: 40; font.bold: true
anchors.top: time.bottom
anchors.horizontalCenter: parent.horizontalCenter
- anchors.topMargin: 20
+ anchors.topMargin: 10
color: "#3870BA"
text: getTime()
}
@@ -237,7 +238,7 @@ Rectangle {
font.pixelSize: 40; font.bold: true
anchors.top:maxi.bottom
anchors.horizontalCenter: parent.horizontalCenter
- anchors.topMargin: 20
+ anchors.topMargin: 10
color: "#3870BA"
text: " " + heartRate.maxHR + " || " + heartRate.minHR
}
@@ -247,7 +248,7 @@ Rectangle {
font.pixelSize: 30;
anchors.top: mini.bottom
anchors.horizontalCenter: parent.horizontalCenter
- anchors.topMargin: 20
+ anchors.topMargin: 10
color: "#3870BA"
text: " Calories "
}
@@ -257,9 +258,9 @@ Rectangle {
font.pixelSize: 40; font.bold: true
anchors.top:calories.bottom
anchors.horizontalCenter: parent.horizontalCenter
- anchors.topMargin: 20
+ anchors.topMargin: 10
color: "#3870BA"
- text: Math.floor(heartRate.calories)
+ text: heartRate.calories.toFixed(3)
}
}
}