diff options
author | Saturneric <[email protected]> | 2021-12-06 20:38:05 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-12-06 20:38:05 +0000 |
commit | 4f9ee73ffdda5a495d25ebf4f769a4c43aa78295 (patch) | |
tree | 7ef532525a250c485d95c1df5e4b432e169ec53c /src/ui/main_window/MainWindowUI.cpp | |
parent | Improve UI & Functions (diff) | |
download | GpgFrontend-4f9ee73ffdda5a495d25ebf4f769a4c43aa78295.tar.gz GpgFrontend-4f9ee73ffdda5a495d25ebf4f769a4c43aa78295.zip |
Test & Improve UI
Diffstat (limited to 'src/ui/main_window/MainWindowUI.cpp')
-rw-r--r-- | src/ui/main_window/MainWindowUI.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/ui/main_window/MainWindowUI.cpp b/src/ui/main_window/MainWindowUI.cpp index 7ceaffa2..4499b9c8 100644 --- a/src/ui/main_window/MainWindowUI.cpp +++ b/src/ui/main_window/MainWindowUI.cpp @@ -254,7 +254,14 @@ void MainWindow::createActions() { aboutAct = new QAction(_("About"), this); aboutAct->setIcon(QIcon(":help.png")); aboutAct->setToolTip(_("Show the application's About box")); - connect(aboutAct, SIGNAL(triggered()), this, SLOT(slotAbout())); + connect(aboutAct, &QAction::triggered, this, + [=]() { new AboutDialog(0, this); }); + + translateAct = new QAction(_("Translate"), this); + translateAct->setIcon(QIcon(":help.png")); + translateAct->setToolTip(_("Information about translation")); + connect(translateAct, &QAction::triggered, this, + [=]() { new AboutDialog(1, this); }); /* * Check Update Menu @@ -262,7 +269,8 @@ void MainWindow::createActions() { checkUpdateAct = new QAction(_("Check for Updates"), this); checkUpdateAct->setIcon(QIcon(":help.png")); checkUpdateAct->setToolTip(_("Check for updates")); - connect(checkUpdateAct, SIGNAL(triggered()), this, SLOT(slotCheckUpdate())); + connect(checkUpdateAct, &QAction::triggered, this, + [=]() { new AboutDialog(2, this); }); startWizardAct = new QAction(_("Open Wizard"), this); startWizardAct->setToolTip(_("Open the wizard")); @@ -398,6 +406,7 @@ void MainWindow::createMenus() { helpMenu->addAction(startWizardAct); helpMenu->addSeparator(); helpMenu->addAction(checkUpdateAct); + helpMenu->addAction(translateAct); helpMenu->addAction(aboutAct); } @@ -410,7 +419,7 @@ void MainWindow::createToolBars() { fileToolBar->addAction(browserAct); viewMenu->addAction(fileToolBar->toggleViewAction()); - cryptToolBar = addToolBar(_("Crypt")); + cryptToolBar = addToolBar(_("Operations")); cryptToolBar->setObjectName("cryptToolBar"); cryptToolBar->addAction(encryptAct); cryptToolBar->addAction(encryptSignAct); |