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
595 B

#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);
// access private member
void show();
private:
MainWindow *m_parent;
QSystemTrayIcon *m_systemTrayIcon;
QMenu *m_trayIconMenu;
QAction *m_minimizeAction;
QAction *m_maximizeAction;
QAction *m_restoreAction;
QAction *m_quitAction;
QIcon *m_icon;
};
#endif // SYSTEMTRAY_H