Add menu icons

This commit is contained in:
Ximi1970
2020-02-28 22:32:19 +01:00
parent 7946e7ffd4
commit d30c92856f
8 changed files with 12 additions and 1 deletions

View File

@@ -3,5 +3,11 @@
<file>files/icons/SysTray-X.png</file>
<file>files/icons/blank-icon.png</file>
<file>files/icons/Thunderbird.png</file>
<file>files/icons/document-new.png</file>
<file>files/icons/gtk-apply.png</file>
<file>files/icons/gtk-edit.png</file>
<file>files/icons/gtk-preferences.png</file>
<file>files/icons/window-close.png</file>
<file>files/icons/window-restore.png</file>
</qresource>
</RCC>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 680 B

View File

@@ -14,6 +14,8 @@
*/
#include <QCoreApplication>
#include <QMenu>
#include <QStyle>
#include <QIcon>
/*
* Constants
@@ -164,12 +166,15 @@ void SysTrayX::createActions()
*/
m_showhide_action = new QAction(tr("&Show/Hide"), this);
m_showhide_action->setIcon( QIcon( ":/files/icons/window-restore.png" ) );
connect( m_showhide_action, &QAction::triggered, m_win_ctrl, &WindowCtrl::slotShowHide );
m_pref_action = new QAction(tr("&Preferences"), this);
m_pref_action->setIcon( QIcon( ":/files/icons/gtk-preferences.png" ) );
connect( m_pref_action, &QAction::triggered, m_pref_dialog, &PreferencesDialog::showNormal );
m_quit_action = new QAction(tr("&Quit"), this);
m_quit_action = new QAction( tr("&Quit"), this );
m_quit_action->setIcon( QIcon( ":/files/icons/window-close.png" ) );
connect( m_quit_action, &QAction::triggered, this, &SysTrayX::slotShutdown );
}