Skip to content

Commit d3e7e40

Browse files
authored
Add a shortcut to return the robot to start position (#1914)
Add a shortcut CTRL + R to return the robot to start position.
1 parent bb9e277 commit d3e7e40

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

plugins/robots/common/twoDModel/src/engine/view/twoDModelWidget.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,8 @@ void TwoDModelWidget::connectUiButtons()
354354

355355
connect(mRobotItemPopup, &RobotItemPopup::restoreRobotPositionClicked, this, &TwoDModelWidget::returnToStartMarker);
356356
connect(mRobotItemPopup, &RobotItemPopup::setRobotPositionClicked, this, &TwoDModelWidget::setStartMarker);
357+
358+
mUi->initialStateButton->setShortcut(Qt::CTRL + Qt::Key_R);
357359
connect(mUi->initialStateButton, &QAbstractButton::clicked, this, &TwoDModelWidget::returnToStartMarker);
358360
connect(mUi->toggleDetailsButton, &QAbstractButton::clicked, this, &TwoDModelWidget::toggleDetailsVisibility);
359361

qrtranslations/fr/plugins/robots/twoDModel_fr.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@
746746
<translation type="vanished">Annuler</translation>
747747
</message>
748748
<message>
749-
<location line="+102"/>
749+
<location line="+104"/>
750750
<source>Training mode: solution will not be checked</source>
751751
<translation type="unfinished"></translation>
752752
</message>

qrtranslations/ru/plugins/robots/twoDModel_ru.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,7 @@
10891089
<translation type="vanished">Отмена</translation>
10901090
</message>
10911091
<message>
1092-
<location line="+102"/>
1092+
<location line="+104"/>
10931093
<source>Training mode: solution will not be checked</source>
10941094
<translation>Режим тренировки: решение не будет проверяться</translation>
10951095
</message>

0 commit comments

Comments
 (0)