diff --git a/mainwindow.cpp b/mainwindow.cpp index 6d7acb5..4799b1f 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -43,6 +43,10 @@ MainWindow::MainWindow(QWidget *parent) nextButton->setFocusPolicy(Qt::NoFocus); prevButton->setFocusPolicy(Qt::NoFocus); + ui->actionSave_JSON->setShortcut(QKeySequence::Save); + ui->actionQuit->setShortcut(QKeySequence::Quit); + ui->actionRescan_Refresh->setShortcut(QKeySequence::Refresh); + menuDisk = ui->menuDisk; toolMenu = new QMenu("Self Test", this); menuDisk->addMenu(toolMenu); @@ -867,7 +871,7 @@ void MainWindow::clearButtonGroup() delete buttonStretch; } -void MainWindow::on_actionExit_triggered() +void MainWindow::on_actionQuit_triggered() { qApp->quit(); } diff --git a/mainwindow.h b/mainwindow.h index d90db44..21bc13b 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -39,7 +39,7 @@ public: ~MainWindow(); private slots: - void on_actionExit_triggered(); + void on_actionQuit_triggered(); void on_actionSave_JSON_triggered(); diff --git a/mainwindow.ui b/mainwindow.ui index f94c15b..d5df511 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -334,7 +334,7 @@ File - + @@ -371,19 +371,13 @@ &Save JSON - - Ctrl+S - - + - &Exit - - - Alt+F4 + &Quit QAction::MenuRole::QuitRole @@ -394,10 +388,7 @@ - Refresh Devices - - - F5 + &Refresh Devices