diff options
author | Otto Ryynänen <otto.ryynanen@qt.io> | 2017-01-31 15:17:53 +0200 |
---|---|---|
committer | Kari Hautamäki <kari.hautamaki@qt.io> | 2017-02-01 07:54:44 +0000 |
commit | 518c73c59a71911b65ae5d3240b22ea9f5878961 (patch) | |
tree | cccf04cbcc16bad01a6dbbbffc15bdefecbbc1e7 /tradeshow/iot-sensortag/clouddataprovider.cpp | |
parent | 4a7c0e5841b2bb69ddaef2c9620c443934d194ee (diff) |
GyroChart and Magnetometerchart grid removal
Removed grids from charts.
changed magnetometer chart type.
Removed old IR Temp from cloud IF.
New signal(s) for Ambient and object temperatures.
Change-Id: If9f215f33197ca1dc03b2a55187464fdb7a05cd9
Reviewed-by: Kari Hautamäki <kari.hautamaki@qt.io>
Diffstat (limited to 'tradeshow/iot-sensortag/clouddataprovider.cpp')
-rw-r--r-- | tradeshow/iot-sensortag/clouddataprovider.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tradeshow/iot-sensortag/clouddataprovider.cpp b/tradeshow/iot-sensortag/clouddataprovider.cpp index f98432d..f4a24aa 100644 --- a/tradeshow/iot-sensortag/clouddataprovider.cpp +++ b/tradeshow/iot-sensortag/clouddataprovider.cpp @@ -114,19 +114,18 @@ void CloudDataProvider::parseReceivedText() const QString headerText(dataList[stringIndex]); const double doubleValue = QString(dataList[stringIndex+1]).toDouble(); const float floatValue = QString(dataList[stringIndex+1]).toFloat(); + /* NOTE: We emit the signals even if value is unchanged. + * Otherwise the scrolling graphs in UI will not scroll. + */ if ("Humid:" == headerText) { humidity = doubleValue; emit relativeHumidityChanged(); - } else if ("Temp(IR):" == headerText) { - // Old object temperature from version 1.0 - irObjectTemperature = doubleValue; - emit infraredCelsiusTemperatureChanged(); } else if ("Temp(Ambient):" == headerText) { irAmbientTemperature = doubleValue; - emit infraredCelsiusTemperatureChanged(); + emit infraredAmbientTemperatureChanged(); } else if ("Temp(Object):" == headerText) { irObjectTemperature = doubleValue; - emit infraredCelsiusTemperatureChanged(); + emit infraredObjectTemperatureChanged(); } else if ("Light:" == headerText) { lightIntensityLux = doubleValue; emit lightIntensityChanged(); |