UI: Remove icons from OK/Apply/Cancel buttons.

This commit is contained in:
Nodir Temirkhodjaev 2021-01-26 15:11:49 +03:00
parent dbd92f17b1
commit a4c2e9576d
6 changed files with 7 additions and 9 deletions

View File

@ -90,9 +90,9 @@ QLayout *MainPage::setupDialogButtons()
buttonsLayout->addStretch();
m_btOk = new QPushButton(QIcon(":/images/tick.png"), QString());
m_btApply = new QPushButton(QIcon(":/images/accept.png"), QString());
m_btCancel = new QPushButton(QIcon(":/images/cancel.png"), QString());
m_btOk = new QPushButton();
m_btApply = new QPushButton();
m_btCancel = new QPushButton();
connect(m_btOk, &QAbstractButton::clicked, ctrl(), &OptionsController::saveChanges);
connect(m_btApply, &QAbstractButton::clicked, ctrl(), &OptionsController::applyChanges);

View File

@ -238,10 +238,10 @@ void ProgramsWindow::setupAppEditForm()
// OK/Cancel
auto buttonsLayout = new QHBoxLayout();
m_btEditOk = new QPushButton(QIcon(":/images/tick.png"), QString());
m_btEditOk = new QPushButton();
m_btEditOk->setDefault(true);
m_btEditCancel = new QPushButton(QIcon(":/images/cancel.png"), QString());
m_btEditCancel = new QPushButton();
buttonsLayout->addWidget(m_btEditOk, 1, Qt::AlignRight);
buttonsLayout->addWidget(m_btEditCancel);

View File

@ -173,10 +173,10 @@ void ZonesWindow::setupZoneEditForm()
// OK/Cancel
auto buttonsLayout = new QHBoxLayout();
m_btEditOk = new QPushButton(QIcon(":/images/tick.png"), QString());
m_btEditOk = new QPushButton();
m_btEditOk->setDefault(true);
m_btEditCancel = new QPushButton(QIcon(":/images/cancel.png"), QString());
m_btEditCancel = new QPushButton();
buttonsLayout->addWidget(m_btEditOk, 1, Qt::AlignRight);
buttonsLayout->addWidget(m_btEditCancel);

View File

@ -1,6 +1,5 @@
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>images/accept.png</file>
<file>images/application.png</file>
<file>images/application-window-96.png</file>
<file>images/application_add.png</file>
@ -50,7 +49,6 @@
<file>images/shield.png</file>
<file>images/sheild-96.png</file>
<file>images/stop.png</file>
<file>images/tick.png</file>
<file>images/windows-48.png</file>
<file>images/world.png</file>
<file>images/world_link.png</file>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 781 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 537 B