WSL/SLF GitLab Repository

Commit 6f2efc99 authored by Michael Reisecker's avatar Michael Reisecker
Browse files

Add some menu icons

Now our main menu items all have icons and are discerned from
items macOS adds automatically.
Slightly more stringent naming.
parent c545a53b
......@@ -789,12 +789,12 @@ void MainWindow::createMenu()
/* GUI menu */
QMenu *menu_gui = this->menuBar()->addMenu(tr("&GUI"));
gui_reset_ = new QAction(getIcon("document-revert"), tr("&Reset GUI to default values"), menu_gui);
gui_reset_ = new QAction(getIcon("document-revert"), tr("&Reset to default values"), menu_gui);
menu_gui->addAction(gui_reset_);
gui_reset_->setEnabled(false);
gui_reset_->setShortcut(Qt::CTRL + Qt::Key_Backspace);
connect(gui_reset_, &QAction::triggered, this, [=]{ toolbarClick("reset_gui"); });
gui_clear_ = new QAction(getIcon("edit-delete"), tr("&Clear GUI"), menu_gui);
gui_clear_ = new QAction(getIcon("edit-delete"), tr("&Clear"), menu_gui);
menu_gui->addAction(gui_clear_);
gui_clear_->setEnabled(false);
gui_clear_->setShortcut(Qt::CTRL + Qt::SHIFT + Qt::Key_Backspace);
......@@ -815,11 +815,11 @@ void MainWindow::createMenu()
menu_view->addAction(view_log);
connect(view_log, &QAction::triggered, this, &MainWindow::viewLogger);
view_log->setShortcut(Qt::CTRL + Qt::Key_L);
auto *window_toggle_workflow = new QAction(tr("Toggle wor&kflow"), menu_view);
auto *window_toggle_workflow = new QAction(getIcon("utilities-terminal"), tr("Toggle wor&kflow"), menu_view);
menu_view->addAction(window_toggle_workflow);
connect(window_toggle_workflow, &QAction::triggered, this, &MainWindow::toggleWorkflow);
window_toggle_workflow->setShortcut(Qt::CTRL + Qt::Key_K);
auto *view_refresh = new QAction(tr("&Refresh Applications"), menu_view);
auto *view_refresh = new QAction(getIcon("view-refresh"), tr("&Refresh applications"), menu_view);
menu_view->addAction(view_refresh);
connect(view_refresh, &QAction::triggered, this,
[=]{ control_panel_->getWorkflowPanel()->scanFoldersForApps(); });
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment