aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArseniy Movshev <dodoradio@outlook.com>2023-05-26 22:57:53 +0100
committerArseniy Movshev <dodoradio@outlook.com>2023-05-27 13:57:08 +0100
commit16b4a80576dce784f9ab9ea6d5401f86a7567ea8 (patch)
tree97a255bdc0d1d9560795ad1df8e93a0dc7bc55f1 /src
parente489103753a02b0aacc252e8dd4755119f1fdd2b (diff)
initial commit: rename and add demo code
Based on asteroid-helloworld
Diffstat (limited to '')
-rw-r--r--src/CMakeLists.txt8
-rw-r--r--src/main.qml12
2 files changed, 13 insertions, 7 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index c6b802c..f6a79d1 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,8 +1,8 @@
-add_library(asteroid-helloworld main.cpp resources.qrc)
-set_target_properties(asteroid-helloworld PROPERTIES PREFIX "")
+add_library(asteroid-health main.cpp resources.qrc)
+set_target_properties(asteroid-health PROPERTIES PREFIX "")
-target_link_libraries(asteroid-helloworld PUBLIC
+target_link_libraries(asteroid-health PUBLIC
AsteroidApp)
-install(TARGETS asteroid-helloworld
+install(TARGETS asteroid-health
DESTINATION ${CMAKE_INSTALL_LIBDIR})
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 <revestflo@gmail.com>
+ * Copyright (C) 2023 Arseniy Movshev <dodoradio@outlook.com>
+ * 2019 Florent Revest <revestflo@gmail.com>
*
* 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!"
}
}