summaryrefslogtreecommitdiff
path: root/src/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.qml')
-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 {