summaryrefslogtreecommitdiff
path: root/qmlplugin/weightDataLoader.cpp
diff options
context:
space:
mode:
authorArseniy-Movshev <dodoradio@outlook.com>2023-07-02 13:28:57 +0100
committerArseniy-Movshev <dodoradio@outlook.com>2023-07-02 13:28:57 +0100
commit2b4578a2bd73a0f46f027d568533cd51909a8a54 (patch)
treef0258c1f84499141d6bddfdbfc74d539e8344948 /qmlplugin/weightDataLoader.cpp
parentac674c969d2e6dec677f64571f73a15216630171 (diff)
Add a method for adding data points to weight
Diffstat (limited to 'qmlplugin/weightDataLoader.cpp')
-rw-r--r--qmlplugin/weightDataLoader.cpp4
1 files changed, 4 insertions, 0 deletions
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");
}