You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
620 B
35 lines
620 B
14 years ago
|
#ifndef SYSTEMTRAY_H
|
||
|
#define SYSTEMTRAY_H
|
||
|
|
||
|
#include <QObject>
|
||
|
#include <QSystemTrayIcon>
|
||
|
#include <QAction>
|
||
|
#include <QMenu>
|
||
|
#include "mainwindow.h"
|
||
|
|
||
|
class SystemTray : public QWidget
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
|
||
|
explicit SystemTray(MainWindow *mainWindow, QWidget *parent = 0);
|
||
|
void setup();
|
||
|
void show();
|
||
|
|
||
|
private:
|
||
|
|
||
|
MainWindow *m_mainWindow;
|
||
|
|
||
|
QSystemTrayIcon *m_systemTrayIcon;
|
||
|
QMenu *m_trayIconMenu;
|
||
|
QAction *m_minimizeAction;
|
||
|
QAction *m_maximizeAction;
|
||
|
QAction *m_restoreAction;
|
||
|
QAction *m_quitAction;
|
||
|
QIcon *m_icon;
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif // SYSTEMTRAY_H
|