pomodoro: rename service to TimerService, better stopwatch layout

This commit is contained in:
end-4
2025-08-09 22:48:40 +07:00
parent fbe17dc3e3
commit bcd1167d39
4 changed files with 128 additions and 98 deletions
@@ -25,20 +25,20 @@ Item {
event.accepted = true
} else if (event.key === Qt.Key_Space || event.key === Qt.Key_S) { // Pause/resume with Space or S
if (currentTab === 0) {
Pomodoro.togglePomodoro()
TimerService.togglePomodoro()
} else {
Pomodoro.toggleStopwatch()
TimerService.toggleStopwatch()
}
event.accepted = true
} else if (event.key === Qt.Key_R) { // Reset with R
if (currentTab === 0) {
Pomodoro.resetPomodoro()
TimerService.resetPomodoro()
} else {
Pomodoro.stopwatchReset()
TimerService.stopwatchReset()
}
event.accepted = true
} else if (event.key === Qt.Key_L) { // Record lap with L
Pomodoro.stopwatchRecordLap()
TimerService.stopwatchRecordLap()
event.accepted = true
}
}