summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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