diff options
author | Arseniy-Movshev <dodoradio@outlook.com> | 2023-07-02 12:59:26 +0100 |
---|---|---|
committer | Arseniy-Movshev <dodoradio@outlook.com> | 2023-07-02 12:59:26 +0100 |
commit | ac674c969d2e6dec677f64571f73a15216630171 (patch) | |
tree | 0c3a74bd1b284f76f042032be89f4bd6b02484aa /qmlplugin/sensorlogdqmlplugin.cpp | |
parent | 162c92bc3b3a7dbe3d1484f7efc812aa36b23bcb (diff) |
Add a weight data accessor
this doesn't have a sensor associated with it, as it's meant to be logged manually through UI - but we're still using the same model as the other data sources
Diffstat (limited to 'qmlplugin/sensorlogdqmlplugin.cpp')
-rw-r--r-- | qmlplugin/sensorlogdqmlplugin.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qmlplugin/sensorlogdqmlplugin.cpp b/qmlplugin/sensorlogdqmlplugin.cpp index 090679a..8b04b56 100644 --- a/qmlplugin/sensorlogdqmlplugin.cpp +++ b/qmlplugin/sensorlogdqmlplugin.cpp @@ -12,6 +12,7 @@ #include "loggerSettings.h" #include "stepsDataLoader.h" #include "hrDataLoader.h" +#include "weightDataLoader.h" #include <QtQml> LogdPlugin::LogdPlugin(QObject* parent) @@ -24,5 +25,6 @@ void LogdPlugin::registerTypes(const char* uri) Q_ASSERT(uri == QLatin1String("org.asteroid.sensorlogd")); qmlRegisterType<StepsDataLoader>(uri, 1, 0, "StepsDataLoader"); qmlRegisterType<HrDataLoader>(uri, 1, 0, "HrDataLoader"); + qmlRegisterType<WeightDataLoader>(uri, 1, 0, "WeightDataLoader"); qmlRegisterType<LoggerSettings>(uri, 1, 0, "LoggerSettings"); } |