Skip to content

Commit

Permalink
#97 lap times
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrwang committed Jun 5, 2024
1 parent b88d670 commit 740eabd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion NERODevelopment/content/SpeedMode.qml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Item {

Keys.onPressed: {
if (event.key === Qt.Key_Return || event.key === Qt.Key_Enter) {
speedController.handleEnterPress();
speedController.enterButtonPressed();
}
}

Expand Down
2 changes: 1 addition & 1 deletion NERODevelopment/src/controllers/speedcontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ void SpeedController::setMaxCurrentDischarge(float maxCurrentDischarge) {
}
}

void SpeedController::handleEnterPress() {
void SpeedController::enterButtonPressed() {
if (m_timerRunning) {
// Stop the timer
m_timerRunning = false;
Expand Down
2 changes: 1 addition & 1 deletion NERODevelopment/src/controllers/speedcontroller.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public slots:
void setCurrentDischarge(float);
void setMaxCurrentDischarge(float);

void handleEnterPress();
virtual void enterButtonPressed() override;

void update();

Expand Down

0 comments on commit 740eabd

Please sign in to comment.