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.
qtmindmap/systemtray.h

25 lines
421 B

#ifndef SYSTEMTRAY_H
#define SYSTEMTRAY_H
#include <QSystemTrayIcon>
#include "mainwindow.h"
class SystemTray : public QSystemTrayIcon
{
// Q_OBJECT
public:
SystemTray(MainWindow *parent = 0);
private:
MainWindow *mainWindow;
QMenu *trayIconMenu;
QAction *minimizeAction;
QAction *maximizeAction;
QAction *restoreAction;
QAction *quitAction;
QIcon *icon;
};
#endif // SYSTEMTRAY_H