From 609b6125118e4d5f8b1dee99dc4e12f5dac0e1b0 Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Mon, 8 May 2023 19:06:17 +0300 Subject: [PATCH] UI: Programs: Replace "Options" button with "Menu" --- src/ui/form/home/homewindow.cpp | 2 +- src/ui/form/prog/programswindow.cpp | 11 +++++------ src/ui/form/prog/programswindow.h | 2 +- src/ui/fort_icons.qrc | 1 + src/ui/icons/node-tree.png | Bin 0 -> 1359 bytes 5 files changed, 8 insertions(+), 8 deletions(-) create mode 100644 src/ui/icons/node-tree.png diff --git a/src/ui/form/home/homewindow.cpp b/src/ui/form/home/homewindow.cpp index 14913259..9b6827a2 100644 --- a/src/ui/form/home/homewindow.cpp +++ b/src/ui/form/home/homewindow.cpp @@ -107,7 +107,7 @@ QLayout *HomeWindow::setupHeader() { auto layout = new QHBoxLayout(); - m_btMenu = ControlUtil::createButton(":/icons/application_double.png"); + m_btMenu = ControlUtil::createButton(":/icons/node-tree.png"); m_btMenu->setMenu(windowManager()->trayIcon()->menu()); layout->addWidget(m_btMenu); diff --git a/src/ui/form/prog/programswindow.cpp b/src/ui/form/prog/programswindow.cpp index 6e9192d9..b1068175 100644 --- a/src/ui/form/prog/programswindow.cpp +++ b/src/ui/form/prog/programswindow.cpp @@ -12,6 +12,7 @@ #include
#include #include +#include #include #include #include @@ -134,7 +135,7 @@ void ProgramsWindow::retranslateUi() m_btRemoveApp->setText(tr("Remove")); m_btServices->setText(tr("Services")); - m_btOptions->setText(tr("Options")); + m_btMenu->setText(tr("Menu")); appListModel()->refresh(); @@ -239,10 +240,8 @@ QLayout *ProgramsWindow::setupHeader() &WindowManager::showServicesWindow); // Options button - m_btOptions = ControlUtil::createLinkButton(":/icons/cog.png"); - - connect(m_btOptions, &QAbstractButton::clicked, windowManager(), - &WindowManager::showOptionsWindow); + m_btMenu = ControlUtil::createLinkButton(":/icons/node-tree.png"); + m_btMenu->setMenu(windowManager()->trayIcon()->menu()); layout->addWidget(m_btEdit); layout->addWidget(ControlUtil::createSeparator(Qt::Vertical)); @@ -253,7 +252,7 @@ QLayout *ProgramsWindow::setupHeader() layout->addStretch(); layout->addWidget(m_btServices); layout->addWidget(ControlUtil::createSeparator(Qt::Vertical)); - layout->addWidget(m_btOptions); + layout->addWidget(m_btMenu); return layout; } diff --git a/src/ui/form/prog/programswindow.h b/src/ui/form/prog/programswindow.h index 9280b980..88938604 100644 --- a/src/ui/form/prog/programswindow.h +++ b/src/ui/form/prog/programswindow.h @@ -90,7 +90,7 @@ private: QPushButton *m_btRemoveApp = nullptr; QPushButton *m_btEdit = nullptr; QPushButton *m_btServices = nullptr; - QPushButton *m_btOptions = nullptr; + QPushButton *m_btMenu = nullptr; ProgramEditDialog *m_formAppEdit = nullptr; TableView *m_appListView = nullptr; AppInfoRow *m_appInfoRow = nullptr; diff --git a/src/ui/fort_icons.qrc b/src/ui/fort_icons.qrc index fecfffb4..451e2cec 100644 --- a/src/ui/fort_icons.qrc +++ b/src/ui/fort_icons.qrc @@ -37,6 +37,7 @@ icons/key.png icons/lightbulb.png icons/lock_open.png + icons/node-tree.png icons/page_copy.png icons/pencil.png icons/play.png diff --git a/src/ui/icons/node-tree.png b/src/ui/icons/node-tree.png new file mode 100644 index 0000000000000000000000000000000000000000..649c6a94f45f00348d0e3b6ca3dfc847d02de8e8 GIT binary patch literal 1359 zcmV-V1+e;wP)nYqBoAS}xCBx9&8)3LDz z4A$PV9-+?)1F){NHrBcH1j@>@cP~VtX=Xs*n}NG80|NaC>nn5?T@E$ z_S;_w073vj?`_xN>1{Wn;cLqTV>71MNw_BGFf~R{KRqc0!1Fwml)^_}oyXBvcH`Xi zulD`M8?ME^H%{WvgEu3fMD?V!Y_T!hLcfu5w!<%YrA&3ZGiN@9BHlTk&48$-cLA?bwDLKx zF!{cKXj>N<1|(4kys+zbyxe~W%HBKDYT<1~O>N+t2;sc)!6f3hOQ z7dzd)X&s*5c`N3d0TzQnECj%CqHukObP9^SkdAJ4uBhxzfBrp=4em+l!`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