-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsystemtray.h
43 lines (35 loc) · 870 Bytes
/
systemtray.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef SYSYTEMTRAY_H
#define SYSYTEMTRAY_H
#include <QSystemTrayIcon>
class SystemTray : public QSystemTrayIcon
{
Q_OBJECT
public:
SystemTray(QWidget *parent = 0);
~SystemTray();
protected:
bool eventFilter(QObject *obj, QEvent *event);
private:
void InitControl();
QMenu *m_pTrayMenu;
QAction *m_pOpenAction;
QAction *m_pClosePlayWindowAction;
QAction *m_pCloseAction;
QWidget *m_pTopWidget;
QWidgetAction *m_pTopWidgetAction;
QLabel *m_pTitleLabel;
QPushButton *m_pEliteModePushButton;
QPushButton *m_pFullModePushButton;
QWidget *m_pBottomWidget;
QWidgetAction *m_pBottomWidgetAction;
signals:
void closePlayWindow();
void showCloudWindow();
void showWidget();
void showUpdate();
void showHelp();
void showAbout();
private slots:
void on_trayMenu_activated(QSystemTrayIcon::ActivationReason reason);
};
#endif //SYSYTEMTRAY_H