From 2b4578a2bd73a0f46f027d568533cd51909a8a54 Mon Sep 17 00:00:00 2001 From: Arseniy-Movshev Date: Sun, 2 Jul 2023 13:28:57 +0100 Subject: Add a method for adding data points to weight --- qmlplugin/weightDataLoader.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'qmlplugin/weightDataLoader.cpp') diff --git a/qmlplugin/weightDataLoader.cpp b/qmlplugin/weightDataLoader.cpp index a81201a..2331252 100644 --- a/qmlplugin/weightDataLoader.cpp +++ b/qmlplugin/weightDataLoader.cpp @@ -53,6 +53,10 @@ QVariant WeightDataLoader::getDataForDate(QDate date) { return QVariant::fromValue(m_filedata); } +void WeightDataLoader::addDataPoint(qreal value) { + fileAddRecord("weight",QString::number(value)); +} + void WeightDataLoader::triggerDaemonRecording() { m_iface->call("triggerRecording"); } -- cgit v1.2.3-54-g00ecf