aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/main_window/MainWindowUI.cpp
diff options
context:
space:
mode:
authorSaturn&Eric <[email protected]>2023-04-04 19:25:40 +0000
committerGitHub <[email protected]>2023-04-04 19:25:40 +0000
commit770e0d6ab61ec9ade91f1109244043195d99b720 (patch)
treec9605d79f53468176225d2c9314fceb0e036791e /src/ui/main_window/MainWindowUI.cpp
parentMerge pull request #93 from saturneric/dev/2.0.10/main (diff)
parentfeat: upgrade version to 2.1.1 (diff)
downloadGpgFrontend-770e0d6ab61ec9ade91f1109244043195d99b720.tar.gz
GpgFrontend-770e0d6ab61ec9ade91f1109244043195d99b720.zip
Merge pull request #95 from saturneric/dev/2.1.0/main
Develop 2.1.1.1
Diffstat (limited to 'src/ui/main_window/MainWindowUI.cpp')
-rw-r--r--src/ui/main_window/MainWindowUI.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ui/main_window/MainWindowUI.cpp b/src/ui/main_window/MainWindowUI.cpp
index 1034df52..d1a72c83 100644
--- a/src/ui/main_window/MainWindowUI.cpp
+++ b/src/ui/main_window/MainWindowUI.cpp
@@ -29,6 +29,7 @@
#include "MainWindow.h"
#include "core/function/GlobalSettingStation.h"
#include "core/function/gpg/GpgAdvancedOperator.h"
+#include "dialog/gnupg/GnuPGControllerDialog.h"
#include "ui/UserInterfaceUtils.h"
namespace GpgFrontend::UI {
@@ -330,6 +331,12 @@ void MainWindow::create_actions() {
}
});
+ gnupg_controller_open_act_ = new QAction(_("Open GnuPG Controller"), this);
+ gnupg_controller_open_act_->setIcon(QIcon(":configure.png"));
+ gnupg_controller_open_act_->setToolTip(_("Open GnuPG Controller Dialog"));
+ connect(gnupg_controller_open_act_, &QAction::triggered, this,
+ [this]() { (new GnuPGControllerDialog(this))->exec(); });
+
/*
* About Menu
*/
@@ -497,6 +504,8 @@ void MainWindow::create_menus() {
gpg_menu_->addSeparator();
gpg_menu_->addAction(reload_components_act_);
gpg_menu_->addAction(restart_components_act_);
+ gpg_menu_->addSeparator();
+ gpg_menu_->addAction(gnupg_controller_open_act_);
steganography_menu_ = menuBar()->addMenu(_("Steganography"));
steganography_menu_->addAction(cut_pgp_header_act_);