mirror of
https://github.com/tnodir/fort
synced 2024-11-15 07:06:08 +00:00
UI: Programs: Replace "Options" button with "Menu"
This commit is contained in:
parent
c23238269c
commit
609b612511
@ -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);
|
||||
|
@ -12,6 +12,7 @@
|
||||
#include <form/controls/appinforow.h>
|
||||
#include <form/controls/controlutil.h>
|
||||
#include <form/controls/tableview.h>
|
||||
#include <form/tray/trayicon.h>
|
||||
#include <fortsettings.h>
|
||||
#include <manager/windowmanager.h>
|
||||
#include <model/applistmodel.h>
|
||||
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -37,6 +37,7 @@
|
||||
<file>icons/key.png</file>
|
||||
<file>icons/lightbulb.png</file>
|
||||
<file>icons/lock_open.png</file>
|
||||
<file>icons/node-tree.png</file>
|
||||
<file>icons/page_copy.png</file>
|
||||
<file>icons/pencil.png</file>
|
||||
<file>icons/play.png</file>
|
||||
|
BIN
src/ui/icons/node-tree.png
Normal file
BIN
src/ui/icons/node-tree.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
Loading…
Reference in New Issue
Block a user