pomodoro: move timers to service, specific button logic to widget

This commit is contained in:
end-4
2025-08-09 19:45:26 +07:00
parent 1f4568d22f
commit 5bf80dae4e
4 changed files with 67 additions and 61 deletions
@@ -45,23 +45,6 @@ Item {
}
}
Timer {
id: pomodoroTimer
interval: 200
running: Pomodoro.isPomodoroRunning
repeat: true
onTriggered: Pomodoro.refreshPomodoro()
}
Timer {
id: stopwatchTimer
interval: 10
running: Pomodoro.isStopwatchRunning
repeat: true
onTriggered: Pomodoro.refreshStopwatch()
}
ColumnLayout {
anchors.fill: parent
spacing: 0