summaryrefslogtreecommitdiff
path: root/src/main.qml
diff options
context:
space:
mode:
authorArseniy Movshev <dodoradio@outlook.com>2023-07-02 16:12:55 +0100
committerdodoradio <dodoradio@outlook.com>2023-08-02 22:54:32 +0100
commit1747034feba274292cc9acfde21a1576d59a11a9 (patch)
tree5e3991bb9ed580a83cf084f415d540c93d7808c1 /src/main.qml
parent756e6b53fb64b75d3f08014338640f197d354ea1 (diff)
Add weight graph and preview
The weight data collection is manual, so we need a page for the user to input data, hence this commit isn't sufficient for a weight logging implementation on its own. Weight doesn't have a dataChanged signal in sensorlogd, so that's currently not implemented here either Because weight tracking isn't for everyone, the preview isn't shown by default.
Diffstat (limited to '')
-rw-r--r--src/main.qml13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main.qml b/src/main.qml
index 46090a2..39f83a1 100644
--- a/src/main.qml
+++ b/src/main.qml
@@ -26,6 +26,7 @@ import "graphs"
import "settings"
import "stepCounter"
import "heartrate"
+import "weight"
Application {
id: app
@@ -69,6 +70,13 @@ Application {
visible: hrPreviewVisible.value
}
+ Item { width: parent.width; height: parent.width*0.1; visible: weightPreviewVisible.value}
+
+ WeightPreview {
+ width: parent.width
+ visible: weightPreviewVisible.value
+ }
+
ListItem {
title: "Settings"
iconName: "ios-settings-outline"
@@ -91,6 +99,11 @@ Application {
key: "/org/asteroidos/health/ui/heartrate/showpreview"
defaultValue: true
}
+ ConfigurationValue {
+ id: weightPreviewVisible
+ key: "/org/asteroidos/health/ui/weight/showpreview"
+ defaultValue: false
+ }
Component {
id: settingsPage
RootSettingsPage {