From c57c0cf188ccfdab8a3881a97a3568bc3be27afb Mon Sep 17 00:00:00 2001 From: dodoradio Date: Fri, 21 Jul 2023 17:15:53 +0100 Subject: Implement new dataChanged signal for file updates --- src/graphs/HrGraph.qml | 4 +++- src/graphs/StepsLineGraph.qml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src/graphs') diff --git a/src/graphs/HrGraph.qml b/src/graphs/HrGraph.qml index a3627af..40bd962 100644 --- a/src/graphs/HrGraph.qml +++ b/src/graphs/HrGraph.qml @@ -33,7 +33,9 @@ Item { Component.onCompleted: { hrGraph.loadGraphData(hrDataLoader.getDataFromTo(startTime,endTime)) } - HrDataLoader { id: hrDataLoader } + HrDataLoader { id: hrDataLoader + onDataChanged: hrGraph.loadGraphData(getDataFromTo(startTime,endTime)) + } VerticalLabels { // labels column id: markerParent width: parent.width/8 diff --git a/src/graphs/StepsLineGraph.qml b/src/graphs/StepsLineGraph.qml index c654901..ddfcf5f 100644 --- a/src/graphs/StepsLineGraph.qml +++ b/src/graphs/StepsLineGraph.qml @@ -33,7 +33,9 @@ Item { Component.onCompleted: { stepsGraph.loadGraphData(stepsDataLoader.getDataFromTo(startTime,endTime)) } - StepsDataLoader { id: stepsDataLoader } + StepsDataLoader { id: stepsDataLoader + onDataChanged: stepsGraph.loadGraphData(getDataFromTo(startTime,endTime)) + } VerticalLabels { // labels column id: markerParent width: parent.width/8 -- cgit v1.2.3-70-g09d2