diff options
| author | me_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac> | 2013-10-15 19:43:35 +0000 |
|---|---|---|
| committer | me_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac> | 2013-10-15 19:43:35 +0000 |
| commit | 2bd64d2c683016b9b64720f92809094933fc7f50 (patch) | |
| tree | 31a17caecc122713dc926a085a3d9cb1f530c213 /pica-client/picasystray.h | |
| parent | f92f5b874cf2d936d7c722cfcecf20e0ff066e16 (diff) | |
| download | pica-pica-2bd64d2c683016b9b64720f92809094933fc7f50.tar.gz pica-pica-2bd64d2c683016b9b64720f92809094933fc7f50.zip | |
blinking systray icon on incoming messages, initial implementation, can be buggy
git-svn-id: svn://localhost/project_picapica/trunk@288 fb96df88-216d-11de-830c-f3023f12d8ac
Diffstat (limited to 'pica-client/picasystray.h')
| -rw-r--r-- | pica-client/picasystray.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pica-client/picasystray.h b/pica-client/picasystray.h index cf9706d..5743280 100644 --- a/pica-client/picasystray.h +++ b/pica-client/picasystray.h @@ -4,6 +4,7 @@ #include <QObject> #include <QSystemTrayIcon> #include <QMenu> +#include <QPixmap> #include "skynet.h" #include "mainwindow.h" #include "globals.h" @@ -13,14 +14,21 @@ class PicaSysTray : public QObject Q_OBJECT public: explicit PicaSysTray(QObject *parent = 0); + void StartBlinking(); + void StopBlinking(); signals: + void doubleclicked(); public slots: private: QSystemTrayIcon *systray_; QMenu *systrayMenu_; + void timerEvent(QTimerEvent *event); + int timer_id_; + QIcon blink_; + QPixmap emptyicon_; private slots: void systray_activated(QSystemTrayIcon::ActivationReason); |
