mirror of
https://gitlab.com/comunic/comunicwatcher
synced 2024-10-22 22:53:24 +00:00
29 lines
341 B
C
29 lines
341 B
C
|
/**
|
||
|
* Tray icon
|
||
|
*
|
||
|
* @author Pierre Hubert
|
||
|
*/
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include <QObject>
|
||
|
#include <QSystemTrayIcon>
|
||
|
|
||
|
class TrayIcon : public QObject
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
|
explicit TrayIcon(QObject *parent = nullptr);
|
||
|
~TrayIcon();
|
||
|
|
||
|
signals:
|
||
|
|
||
|
private slots:
|
||
|
void onQuit();
|
||
|
|
||
|
private:
|
||
|
QMenu *mMenu;
|
||
|
QSystemTrayIcon mTrayIcon;
|
||
|
};
|
||
|
|