diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-12-28 06:37:50 -0500 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-12-28 06:37:50 -0500 |
| commit | f01fe9ce7c17bc9697286b49f03534a45d3daaa4 (patch) | |
| tree | 143316eabdf57c891e03fcecf8ae8588b5f03868 /src | |
| parent | e43f6e6f377353aec849a4fd7b69315c538bcf94 (diff) | |
refresh action, added in toolbar and menu
Diffstat (limited to 'src')
| -rw-r--r-- | src/mainwindow.cpp | 6 | ||||
| -rw-r--r-- | src/mainwindow.h | 1 | ||||
| -rw-r--r-- | src/mainwindow.ui | 14 |
3 files changed, 20 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 0f5b15e3..31b82d62 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -487,7 +487,6 @@ MainWindow::MainWindow(Settings &settings new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_Enter), this, SLOT(openExplorer_activated())); new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_Return), this, SLOT(openExplorer_activated())); - new QShortcut(QKeySequence::Refresh, this, SLOT(refreshProfile_activated())); setFilterShortcuts(ui->modList, ui->modFilterEdit); setFilterShortcuts(ui->espList, ui->espFilterEdit); @@ -2292,6 +2291,11 @@ void MainWindow::on_actionInstallMod_triggered() installMod(); } +void MainWindow::on_action_Refresh_triggered() +{ + refreshProfile_activated(); +} + void MainWindow::on_actionAdd_Profile_triggered() { for (;;) { diff --git a/src/mainwindow.h b/src/mainwindow.h index eae150d6..f8910361 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -557,6 +557,7 @@ private slots: // ui slots // actions void on_actionAdd_Profile_triggered(); void on_actionInstallMod_triggered(); + void on_action_Refresh_triggered(); void on_actionModify_Executables_triggered(); void on_actionNexus_triggered(); void on_actionNotifications_triggered(); diff --git a/src/mainwindow.ui b/src/mainwindow.ui index 692246fd..14cbdda1 100644 --- a/src/mainwindow.ui +++ b/src/mainwindow.ui @@ -1413,6 +1413,7 @@ p, li { white-space: pre-wrap; } <addaction name="actionNexus"/> <addaction name="actionModPage"/> <addaction name="actionAdd_Profile"/> + <addaction name="action_Refresh"/> <addaction name="actionModify_Executables"/> <addaction name="actionTool"/> <addaction name="actionSettings"/> @@ -1482,6 +1483,7 @@ p, li { white-space: pre-wrap; } <addaction name="actionToolBarTextOnly"/> <addaction name="actionToolBarIconsAndText"/> </widget> + <addaction name="action_Refresh"/> <addaction name="menuToolbars"/> <addaction name="actionViewLog"/> <addaction name="separator"/> @@ -1896,6 +1898,18 @@ p, li { white-space: pre-wrap; } <string>Log</string> </property> </action> + <action name="action_Refresh"> + <property name="icon"> + <iconset resource="resources.qrc"> + <normaloff>:/MO/gui/resources/view-refresh.png</normaloff>:/MO/gui/resources/view-refresh.png</iconset> + </property> + <property name="text"> + <string>&Refresh</string> + </property> + <property name="shortcut"> + <string>F5</string> + </property> + </action> </widget> <layoutdefault spacing="6" margin="11"/> <customwidgets> |
