mirror of
https://github.com/Ximi1970/systray-x.git
synced 2026-07-05 06:09:27 +02:00
Add menu icons
This commit is contained in:
@@ -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>
|
||||
|
||||
BIN
app/SysTray-X/files/icons/document-new.png
Normal file
BIN
app/SysTray-X/files/icons/document-new.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.2 KiB |
BIN
app/SysTray-X/files/icons/gtk-apply.png
Normal file
BIN
app/SysTray-X/files/icons/gtk-apply.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
BIN
app/SysTray-X/files/icons/gtk-edit.png
Normal file
BIN
app/SysTray-X/files/icons/gtk-edit.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.2 KiB |
BIN
app/SysTray-X/files/icons/gtk-preferences.png
Normal file
BIN
app/SysTray-X/files/icons/gtk-preferences.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.5 KiB |
BIN
app/SysTray-X/files/icons/window-close.png
Normal file
BIN
app/SysTray-X/files/icons/window-close.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.4 KiB |
BIN
app/SysTray-X/files/icons/window-restore.png
Normal file
BIN
app/SysTray-X/files/icons/window-restore.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 680 B |
@@ -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 );
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user