diff options
author | Kari Hautamäki <kari.hautamaki@qt.io> | 2017-02-08 11:26:05 +0200 |
---|---|---|
committer | Titta Heikkala <titta.heikkala@qt.io> | 2017-02-08 10:16:40 +0000 |
commit | d49cdefe565d170279d97d3cfedccd1e2111051a (patch) | |
tree | 3cc47a1c1de9d94bcd2d6af46e61e43b5685ca16 /tradeshow | |
parent | eaec031cc108dd37d9506eb1eda45c42b639c982 (diff) |
iot-sensortag: Fix alignment of graph in TemperatureChart
- Chart data is correctly aligned vertically
- remove unused (and bound in wrong way) avgValue
Change-Id: I6adf7cfdbc3b13e54b982f6c50e2ae426ffadea6
Reviewed-by: Titta Heikkala <titta.heikkala@qt.io>
Diffstat (limited to 'tradeshow')
-rw-r--r-- | tradeshow/iot-sensortag/resources/base/TemperatureChart.qml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tradeshow/iot-sensortag/resources/base/TemperatureChart.qml b/tradeshow/iot-sensortag/resources/base/TemperatureChart.qml index 1482856..a7c3ab6 100644 --- a/tradeshow/iot-sensortag/resources/base/TemperatureChart.qml +++ b/tradeshow/iot-sensortag/resources/base/TemperatureChart.qml @@ -60,10 +60,9 @@ BaseChart { property real minimum: 10 property real maximum: 40 - property real defaultAvgValue: maximum - minimum + property real defaultAvgValue: (maximum + minimum) / 2 property real minValue: defaultAvgValue property real maxValue: defaultAvgValue - readonly property real avgValue: (maxValue - minValue) / 2 property real value readonly property color legendColor: "white" |