summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-08-28 16:53:45 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-08-28 16:53:45 (GMT)
commit18c39e032395ee49796d330905caea4e28ef5608 (patch)
treed5da261d27feff987ea0cdd37992dd0a9d9b6ad2 /Swift/QtUI/QtSystemTray.h
parentabc4579164fa06b6f8a7d9d27d6e36c100cbcc4f (diff)
downloadswift-18c39e032395ee49796d330905caea4e28ef5608.zip
swift-18c39e032395ee49796d330905caea4e28ef5608.tar.bz2
Show the hidden roster on system tray click.
Diffstat (limited to 'Swift/QtUI/QtSystemTray.h')
-rw-r--r--Swift/QtUI/QtSystemTray.h7
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_;