From 16b4a80576dce784f9ab9ea6d5401f86a7567ea8 Mon Sep 17 00:00:00 2001 From: Arseniy Movshev Date: Fri, 26 May 2023 22:57:53 +0100 Subject: initial commit: rename and add demo code Based on asteroid-helloworld --- src/main.qml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/main.qml') diff --git a/src/main.qml b/src/main.qml index 9c181e2..04e5c21 100644 --- a/src/main.qml +++ b/src/main.qml @@ -1,5 +1,6 @@ /* - * Copyright (C) 2019 Florent Revest + * Copyright (C) 2023 Arseniy Movshev + * 2019 Florent Revest * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -18,16 +19,21 @@ import QtQuick 2.9 import org.asteroid.controls 1.0 +import org.asteroid.sensorlogd 1.0 + Application { id: app centerColor: "#b04d1c" outerColor: "#421c0a" + StepsDataLoader { + Component.onCompleted: stepsLabel.text = getTodayData() + } + Label { - id: hello + id: stepsLabel anchors.centerIn: parent horizontalAlignment: Text.AlignHCenter - text: "Hello World!" } } -- cgit v1.2.3-54-g00ecf