diff options
Diffstat (limited to 'Swift/QtUI/QtSystemTray.h')
-rw-r--r-- | Swift/QtUI/QtSystemTray.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Swift/QtUI/QtSystemTray.h b/Swift/QtUI/QtSystemTray.h index 40cc540..4ef55d9 100644 --- a/Swift/QtUI/QtSystemTray.h +++ b/Swift/QtUI/QtSystemTray.h @@ -7,11 +7,16 @@ class QIcon; namespace Swift { - class QtSystemTray : public SystemTray { + class QtSystemTray : public QObject, public SystemTray { + Q_OBJECT public: QtSystemTray(); ~QtSystemTray(); void setUnreadMessages(bool some); + signals: + void clicked(); + private slots: + void handleIconActivated(QSystemTrayIcon::ActivationReason reason); private: QSystemTrayIcon* trayIcon_; QIcon standardIcon_; |