#ifndef SYSTEMTRAY_H #define SYSTEMTRAY_H #include #include #include #include #include "mainwindow.h" class SystemTray : public QWidget { Q_OBJECT public: explicit SystemTray(MainWindow *mainWindow, QWidget *parent = 0); // access private member void show() { m_systemTrayIcon->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