mirror of
https://github.com/huderlem/porymap.git
synced 2026-09-13 19:35:40 -05:00
Add shortcuts for Back/Forward
This commit is contained in:
@@ -2885,6 +2885,9 @@
|
||||
<addaction name="actionZoom_In"/>
|
||||
<addaction name="actionZoom_Out"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionBack"/>
|
||||
<addaction name="actionForward"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionCursor_Tile_Outline"/>
|
||||
<addaction name="actionPlayer_View_Rectangle"/>
|
||||
<addaction name="actionBetter_Cursors"/>
|
||||
@@ -3248,6 +3251,22 @@
|
||||
<string>Duplicate Current Map/Layout...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionBack">
|
||||
<property name="text">
|
||||
<string>Back</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Alt+Left</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionForward">
|
||||
<property name="text">
|
||||
<string>Forward</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Alt+Right</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<customwidgets>
|
||||
|
||||
@@ -455,6 +455,7 @@ void MainWindow::initMapList() {
|
||||
backArrow->setToolTip("Open previous map");
|
||||
backArrow->setEnabled(false);
|
||||
connect(backArrow, &QToolButton::clicked, this, &MainWindow::openPreviousMap);
|
||||
connect(ui->actionBack, &QAction::triggered, this, &MainWindow::openPreviousMap);
|
||||
navigationLayout->addWidget(backArrow);
|
||||
this->backNavigation.button = backArrow;
|
||||
|
||||
@@ -463,6 +464,7 @@ void MainWindow::initMapList() {
|
||||
forwardArrow->setToolTip("Open next map");
|
||||
forwardArrow->setEnabled(false);
|
||||
connect(forwardArrow, &QToolButton::clicked, this, &MainWindow::openNextMap);
|
||||
connect(ui->actionForward, &QAction::triggered, this, &MainWindow::openNextMap);
|
||||
navigationLayout->addWidget(forwardArrow);
|
||||
this->forwardNavigation.button = forwardArrow;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user