diff options
author | Saturneric <[email protected]> | 2022-07-23 12:18:23 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2022-07-23 12:18:23 +0000 |
commit | 61cc4ed27fd75315736407eac0932a3b297c9872 (patch) | |
tree | ab1aad6c483efffbe06e687627afb4f6260ebde2 /src/ui/main_window/MainWindowUI.cpp | |
parent | fix(ui): fix button style problem (diff) | |
download | GpgFrontend-61cc4ed27fd75315736407eac0932a3b297c9872.tar.gz GpgFrontend-61cc4ed27fd75315736407eac0932a3b297c9872.zip |
feat(ui): add tab to show gnupg info
Diffstat (limited to 'src/ui/main_window/MainWindowUI.cpp')
-rw-r--r-- | src/ui/main_window/MainWindowUI.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ui/main_window/MainWindowUI.cpp b/src/ui/main_window/MainWindowUI.cpp index 7d798c8b..1470b731 100644 --- a/src/ui/main_window/MainWindowUI.cpp +++ b/src/ui/main_window/MainWindowUI.cpp @@ -251,11 +251,17 @@ void MainWindow::create_actions() { connect(about_act_, &QAction::triggered, this, [=]() { new AboutDialog(0, this); }); + gnupg_act_ = new QAction(_("GnuPG"), this); + gnupg_act_->setIcon(QIcon(":help.png")); + gnupg_act_->setToolTip(_("Information about Gnupg")); + connect(gnupg_act_, &QAction::triggered, this, + [=]() { new AboutDialog(1, this); }); + translate_act_ = new QAction(_("Translate"), this); translate_act_->setIcon(QIcon(":help.png")); translate_act_->setToolTip(_("Information about translation")); connect(translate_act_, &QAction::triggered, this, - [=]() { new AboutDialog(1, this); }); + [=]() { new AboutDialog(2, this); }); /* * Check Update Menu @@ -377,6 +383,7 @@ void MainWindow::create_menus() { help_menu_->addSeparator(); help_menu_->addAction(check_update_act_); help_menu_->addAction(translate_act_); + help_menu_->addAction(gnupg_act_); help_menu_->addAction(about_act_); } |