diff --git a/forms/mainwindow.ui b/forms/mainwindow.ui index c75c8328..c605528d 100644 --- a/forms/mainwindow.ui +++ b/forms/mainwindow.ui @@ -2885,6 +2885,9 @@ + + + @@ -3248,6 +3251,22 @@ Duplicate Current Map/Layout... + + + Back + + + Alt+Left + + + + + Forward + + + Alt+Right + + diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 268c8aa9..1a76414e 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -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;