From 83b19141c731aa035891433e2e4d72ec303ca7df Mon Sep 17 00:00:00 2001
From: Arseniy-Movshev <dodoradio@outlook.com>
Date: Sat, 22 Jul 2023 16:23:37 +0100
Subject: weightDataLoader: add support for floats Weight data may now be
 stored as fractions of a kilogram

---
 qmlplugin/weightDataLoader.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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();
-- 
cgit v1.2.3-70-g09d2