diff options
Diffstat (limited to 'src/stepCounter/StepCounterPreview.qml')
-rw-r--r-- | src/stepCounter/StepCounterPreview.qml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/stepCounter/StepCounterPreview.qml b/src/stepCounter/StepCounterPreview.qml index 3c2d3f0..8ef611e 100644 --- a/src/stepCounter/StepCounterPreview.qml +++ b/src/stepCounter/StepCounterPreview.qml @@ -79,6 +79,11 @@ MouseArea { dataLoadingDone() } indicatorLineHeight: loggerSettings.stepGoalEnabled ? loggerSettings.stepGoalTarget : 0 + onBarClicked: (index)=> { + var d = new Date() + d.setDate(d.getDate() - 6 + index) + pageStack.push(detailPage,{"currentDay": d}) + } } } onClicked: pageStack.push(detailPage) |