-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsystemtray.h
More file actions
34 lines (27 loc) · 747 Bytes
/
systemtray.h
File metadata and controls
34 lines (27 loc) · 747 Bytes
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
#ifndef SYSTEMTRAY_H
#define SYSTEMTRAY_H
#include <QObject>
#include <QAction>
#include <QSystemTrayIcon>
class SystemTray : public QObject
{
Q_OBJECT
public:
explicit SystemTray(QObject *parent = 0);
signals:
void signalIconActivated();
void signalShow();
void signalQuit();
void showSettingsWindow();
void showQuickAccess();
private slots:
/* The slot that will accept the signal from the event click on the application icon in the system tray
*/
void iconActivated(QSystemTrayIcon::ActivationReason reason);
public slots:
void hideIconTray();
private:
/* Declare the object of future applications for the tray icon*/
QSystemTrayIcon * trayIcon;
};
#endif // SYSTEMTRAY_H