summaryrefslogtreecommitdiff
path: root/qmlplugin
diff options
context:
space:
mode:
authorArseniy-Movshev <dodoradio@outlook.com>2023-07-22 16:23:37 +0100
committerArseniy-Movshev <dodoradio@outlook.com>2023-07-22 16:23:37 +0100
commit83b19141c731aa035891433e2e4d72ec303ca7df (patch)
tree3887d0e5b0855066f38fe852139d5d4ea37ea252 /qmlplugin
parent0b0610efc2b93fa44915b9bf5ad1fb1c313bda15 (diff)
weightDataLoader: add support for floats
Weight data may now be stored as fractions of a kilogram
Diffstat (limited to 'qmlplugin')
-rw-r--r--qmlplugin/weightDataLoader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qmlplugin/weightDataLoader.cpp b/qmlplugin/weightDataLoader.cpp
index 7dc7c6b..0687fa8 100644
--- a/qmlplugin/weightDataLoader.cpp
+++ b/qmlplugin/weightDataLoader.cpp
@@ -50,7 +50,7 @@ QList<QPointF> WeightDataLoader::getRawDataForDate(QDate date) {
line = inStream.readLine();
QPointF point;
point.setX(line.split(":")[0].toInt());
- point.setY(line.split(":")[1].toInt());
+ point.setY(line.split(":")[1].toFloat());
m_filedata.append(point);
}
file.close();