tray.h 348 B

12345678910111213141516171819202122232425262728
  1. #ifndef TRAY_H
  2. #define TRAY_H
  3. #include <QDialog>
  4. #include <QSystemTrayIcon>
  5. #include <QMenu>
  6. namespace Ui {
  7. class Tray;
  8. }
  9. class Tray : public QDialog
  10. {
  11. Q_OBJECT
  12. public:
  13. explicit Tray(QWidget *parent = 0);
  14. ~Tray();
  15. private:
  16. Ui::Tray *ui;
  17. QSystemTrayIcon *trayIcon;
  18. QMenu *menu;
  19. void setupUi();
  20. };
  21. #endif // TRAY_H