diff options
author | saturneric <[email protected]> | 2024-05-03 16:09:45 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-05-03 16:09:45 +0000 |
commit | 056edbbd2681caeb56bd2cb0bf4c855068f33a93 (patch) | |
tree | 8e62625f541006f6e69d59638c69ac53c4f6d959 /src/ui/main_window/MainWindowUI.cpp | |
parent | fix: update translations (diff) | |
download | GpgFrontend-056edbbd2681caeb56bd2cb0bf4c855068f33a93.tar.gz GpgFrontend-056edbbd2681caeb56bd2cb0bf4c855068f33a93.zip |
feat: add different icons
Diffstat (limited to 'src/ui/main_window/MainWindowUI.cpp')
-rw-r--r-- | src/ui/main_window/MainWindowUI.cpp | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/ui/main_window/MainWindowUI.cpp b/src/ui/main_window/MainWindowUI.cpp index 02b630d2..c6db5b27 100644 --- a/src/ui/main_window/MainWindowUI.cpp +++ b/src/ui/main_window/MainWindowUI.cpp @@ -83,6 +83,7 @@ void MainWindow::create_actions() { connect(print_act_, &QAction::triggered, edit_, &TextEdit::SlotPrint); close_tab_act_ = new QAction(tr("Close"), this); + close_tab_act_->setIcon(QIcon(":/icons/close.png")); close_tab_act_->setShortcut(QKeySequence::Close); close_tab_act_->setToolTip(tr("Close file")); connect(close_tab_act_, &QAction::triggered, edit_, &TextEdit::SlotCloseTab); @@ -96,20 +97,24 @@ void MainWindow::create_actions() { /* Edit Menu */ undo_act_ = new QAction(tr("Undo"), this); + undo_act_->setIcon(QIcon(":/icons/undo.png")); undo_act_->setShortcut(QKeySequence::Undo); undo_act_->setToolTip(tr("Undo Last Edit Action")); connect(undo_act_, &QAction::triggered, edit_, &TextEdit::SlotUndo); redo_act_ = new QAction(tr("Redo"), this); + redo_act_->setIcon(QIcon(":/icons/redo.png")); redo_act_->setShortcut(QKeySequence::Redo); redo_act_->setToolTip(tr("Redo Last Edit Action")); connect(redo_act_, &QAction::triggered, edit_, &TextEdit::SlotRedo); zoom_in_act_ = new QAction(tr("Zoom In"), this); + zoom_in_act_->setIcon(QIcon(":/icons/zoomin.png")); zoom_in_act_->setShortcut(QKeySequence::ZoomIn); connect(zoom_in_act_, &QAction::triggered, edit_, &TextEdit::SlotZoomIn); zoom_out_act_ = new QAction(tr("Zoom Out"), this); + zoom_out_act_->setIcon(QIcon(":/icons/zoomout.png")); zoom_out_act_->setShortcut(QKeySequence::ZoomOut); connect(zoom_out_act_, &QAction::triggered, edit_, &TextEdit::SlotZoomOut); @@ -344,7 +349,7 @@ void MainWindow::create_actions() { &MainWindow::slot_open_key_management); clean_gpg_password_cache_act_ = new QAction(tr("Clear Password Cache"), this); - clean_gpg_password_cache_act_->setIcon(QIcon(":/icons/configure.png")); + clean_gpg_password_cache_act_->setIcon(QIcon(":/icons/clear-f.png")); clean_gpg_password_cache_act_->setToolTip( tr("Clear Password Cache of GnuPG")); connect(clean_gpg_password_cache_act_, &QAction::triggered, this, [=]() { @@ -361,7 +366,7 @@ void MainWindow::create_actions() { }); reload_components_act_ = new QAction(tr("Reload All Components"), this); - reload_components_act_->setIcon(QIcon(":/icons/configure.png")); + reload_components_act_->setIcon(QIcon(":/icons/restart.png")); reload_components_act_->setToolTip(tr("Reload All GnuPG's Components")); connect(reload_components_act_, &QAction::triggered, this, [=]() { GpgFrontend::GpgAdvancedOperator::ReloadGpgComponents( @@ -379,7 +384,7 @@ void MainWindow::create_actions() { }); restart_components_act_ = new QAction(tr("Restart All Components"), this); - restart_components_act_->setIcon(QIcon(":/icons/configure.png")); + restart_components_act_->setIcon(QIcon(":/icons/restart.png")); restart_components_act_->setToolTip(tr("Restart All GnuPG's Components")); connect(restart_components_act_, &QAction::triggered, this, [=]() { GpgFrontend::GpgAdvancedOperator::RestartGpgComponents(); @@ -406,7 +411,7 @@ void MainWindow::create_actions() { [this]() { (new GnuPGControllerDialog(this))->exec(); }); module_controller_open_act_ = new QAction(tr("Open Module Controller"), this); - module_controller_open_act_->setIcon(QIcon(":/icons/configure.png")); + module_controller_open_act_->setIcon(QIcon(":/icons/module.png")); module_controller_open_act_->setToolTip(tr("Open Module Controller Dialog")); connect(module_controller_open_act_, &QAction::triggered, this, [this]() { (new ModuleControllerDialog(this))->exec(); }); @@ -423,27 +428,28 @@ void MainWindow::create_actions() { if (Module::IsModuleActivate(kGnuPGInfoGatheringModuleID)) { gnupg_act_ = new QAction(tr("GnuPG"), this); - gnupg_act_->setIcon(QIcon(":/icons/help.png")); + gnupg_act_->setIcon(QIcon(":/icons/key.png")); gnupg_act_->setToolTip(tr("Information about Gnupg")); connect(gnupg_act_, &QAction::triggered, this, [=]() { new AboutDialog(tr("GnuPG"), this); }); } translate_act_ = new QAction(tr("Translate"), this); - translate_act_->setIcon(QIcon(":/icons/help.png")); + translate_act_->setIcon(QIcon(":/icons/translate.png")); translate_act_->setToolTip(tr("Information about translation")); connect(translate_act_, &QAction::triggered, this, [=]() { new AboutDialog(tr("Translators"), this); }); if (Module::IsModuleActivate(kVersionCheckingModuleID)) { check_update_act_ = new QAction(tr("Check for Updates"), this); - check_update_act_->setIcon(QIcon(":/icons/help.png")); + check_update_act_->setIcon(QIcon(":/icons/update.png")); check_update_act_->setToolTip(tr("Check for updates")); connect(check_update_act_, &QAction::triggered, this, [=]() { new AboutDialog(tr("Update"), this); }); } start_wizard_act_ = new QAction(tr("Open Wizard"), this); + start_wizard_act_->setIcon(QIcon(":/icons/wizard.png")); start_wizard_act_->setToolTip(tr("Open the wizard")); connect(start_wizard_act_, &QAction::triggered, this, &MainWindow::slot_start_wizard); |