diff --git a/NERODevelopment/content/SpeedMode.qml b/NERODevelopment/content/SpeedMode.qml index a5df0c4..8ff5234 100644 --- a/NERODevelopment/content/SpeedMode.qml +++ b/NERODevelopment/content/SpeedMode.qml @@ -20,7 +20,7 @@ Item { Keys.onPressed: { if (event.key === Qt.Key_Return || event.key === Qt.Key_Enter) { - speedController.handleEnterPress(); + speedController.enterButtonPressed(); } } diff --git a/NERODevelopment/src/controllers/speedcontroller.cpp b/NERODevelopment/src/controllers/speedcontroller.cpp index eede2f8..8ceac49 100644 --- a/NERODevelopment/src/controllers/speedcontroller.cpp +++ b/NERODevelopment/src/controllers/speedcontroller.cpp @@ -100,7 +100,7 @@ void SpeedController::setMaxCurrentDischarge(float maxCurrentDischarge) { } } -void SpeedController::handleEnterPress() { +void SpeedController::enterButtonPressed() { if (m_timerRunning) { // Stop the timer m_timerRunning = false; diff --git a/NERODevelopment/src/controllers/speedcontroller.h b/NERODevelopment/src/controllers/speedcontroller.h index 8f10f4e..39a831e 100644 --- a/NERODevelopment/src/controllers/speedcontroller.h +++ b/NERODevelopment/src/controllers/speedcontroller.h @@ -81,7 +81,7 @@ public slots: void setCurrentDischarge(float); void setMaxCurrentDischarge(float); - void handleEnterPress(); + virtual void enterButtonPressed() override; void update();