comunicwatcher/trayicon.h

29 lines
341 B
C
Raw Normal View History

2020-06-13 12:39:34 +00:00
/**
* 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;
};