summaryrefslogtreecommitdiff
path: root/src/graphs
diff options
context:
space:
mode:
authordodoradio <dodoradio@outlook.com>2023-07-20 17:27:25 +0100
committerdodoradio <dodoradio@outlook.com>2023-07-20 19:17:49 +0100
commite7c5ed6a50600aa6d060de20a39c3d0e80b6dc04 (patch)
tree74686cd491cae5339cf3877bce2614e2e0fb7121 /src/graphs
parentca28e5328d5e65faa6c9b718e8c0e47cf8f76b49 (diff)
Add start and end values for HrGraph
Diffstat (limited to '')
-rw-r--r--src/graphs/HrGraph.qml7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/graphs/HrGraph.qml b/src/graphs/HrGraph.qml
index 0ea5cce..a3627af 100644
--- a/src/graphs/HrGraph.qml
+++ b/src/graphs/HrGraph.qml
@@ -24,9 +24,14 @@ import org.asteroid.sensorlogd 1.0
Item {
id: graph
+ property date startTime: new Date()
+ property date endTime: new Date()
+
+ onStartTimeChanged: hrGraph.loadGraphData(hrDataLoader.getDataFromTo(startTime,endTime))
+ onEndTimeChanged: hrGraph.loadGraphData(hrDataLoader.getDataFromTo(startTime,endTime))
Component.onCompleted: {
- hrGraph.loadGraphData(hrDataLoader.getTodayData())
+ hrGraph.loadGraphData(hrDataLoader.getDataFromTo(startTime,endTime))
}
HrDataLoader { id: hrDataLoader }
VerticalLabels { // labels column