diff options
author | saturneric <[email protected]> | 2025-04-12 23:03:57 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2025-04-12 23:03:57 +0000 |
commit | 571cfb16ccfd7ac6bc59b5acc77a94d0bdcf0990 (patch) | |
tree | a4efe7ba4d5344897c60513c03172d5de0191658 /src/ui/main_window/MainWindowUI.cpp | |
parent | fix: upgrade to gpgme 1.24.2 (diff) | |
download | GpgFrontend-571cfb16ccfd7ac6bc59b5acc77a94d0bdcf0990.tar.gz GpgFrontend-571cfb16ccfd7ac6bc59b5acc77a94d0bdcf0990.zip |
feat: add openpgp smart card support
Diffstat (limited to 'src/ui/main_window/MainWindowUI.cpp')
-rw-r--r-- | src/ui/main_window/MainWindowUI.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/ui/main_window/MainWindowUI.cpp b/src/ui/main_window/MainWindowUI.cpp index a586a43b..6598aede 100644 --- a/src/ui/main_window/MainWindowUI.cpp +++ b/src/ui/main_window/MainWindowUI.cpp @@ -29,9 +29,10 @@ #include "MainWindow.h" #include "core/function/GlobalSettingStation.h" #include "core/module/ModuleManager.h" -#include "dialog/controller/ModuleControllerDialog.h" #include "ui/UserInterfaceUtils.h" #include "ui/dialog/controller/GnuPGControllerDialog.h" +#include "ui/dialog/controller/ModuleControllerDialog.h" +#include "ui/dialog/controller/SmartCardControllerDialog.h" #include "ui/dialog/help/AboutDialog.h" #include "ui/widgets/KeyList.h" #include "ui/widgets/TextEdit.h" @@ -255,6 +256,12 @@ void MainWindow::create_actions() { connect(module_controller_open_act_, &QAction::triggered, this, [this]() { (new ModuleControllerDialog(this))->exec(); }); + smart_card_controller_open_act_ = create_action( + "smart_card_controller_open", tr("Open Smart Card Controller"), + ":/icons/smart-card.png", tr("Open Smart Card Controller Dialog")); + connect(smart_card_controller_open_act_, &QAction::triggered, this, + [this]() { (new SmartCardControllerDialog(this))->exec(); }); + /** * E-Mail Menu */ @@ -462,6 +469,7 @@ void MainWindow::create_menus() { advance_menu_->addSeparator(); advance_menu_->addAction(gnupg_controller_open_act_); advance_menu_->addAction(module_controller_open_act_); + advance_menu_->addAction(smart_card_controller_open_act_); view_menu_ = menuBar()->addMenu(tr("View")); |