diff options
| author | me_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac> | 2013-10-13 13:04:22 +0000 |
|---|---|---|
| committer | me_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac> | 2013-10-13 13:04:22 +0000 |
| commit | b1795101da8914b39968c771556dfbcf954980c0 (patch) | |
| tree | dcdbc77772e301d5dfb49caef7716c4f714210c2 | |
| parent | c0d7c0e487e70d448b4456c50bd9bed6197baee5 (diff) | |
| download | pica-pica-b1795101da8914b39968c771556dfbcf954980c0.tar.gz pica-pica-b1795101da8914b39968c771556dfbcf954980c0.zip | |
tooltip for systray icon
git-svn-id: svn://localhost/project_picapica/trunk@282 fb96df88-216d-11de-830c-f3023f12d8ac
| -rw-r--r-- | pica-client/picasystray.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pica-client/picasystray.cpp b/pica-client/picasystray.cpp index ab31887..64e94b4 100644 --- a/pica-client/picasystray.cpp +++ b/pica-client/picasystray.cpp @@ -1,6 +1,13 @@ #include "picasystray.h" #include "globals.h" #include "picaactioncenter.h" +#include "accounts.h" + +#ifdef PACKAGE_VERSION +#define VERSION_STRING "v"PACKAGE_VERSION +#else +#define VERSION_STRING "" +#endif PicaSysTray::PicaSysTray(QObject *parent) : QObject(parent) @@ -13,6 +20,7 @@ PicaSysTray::PicaSysTray(QObject *parent) : systray_ = new QSystemTrayIcon(picapica_ico_sit); systray_->setContextMenu(systrayMenu_); + systray_->setToolTip("Pica Pica Messenger "VERSION_STRING); systray_->show(); connect(systray_, SIGNAL(activated(QSystemTrayIcon::ActivationReason)), this, SLOT(systray_activated(QSystemTrayIcon::ActivationReason))); @@ -31,6 +39,7 @@ void PicaSysTray::systray_activated(QSystemTrayIcon::ActivationReason r) void PicaSysTray::skynet_became_self_aware() { systray_->setIcon(picapica_ico_fly); + systray_->setToolTip(Accounts::GetCurrentAccount().name + " - Pica Pica Messenger "VERSION_STRING); } void PicaSysTray::skynet_lost_self_awareness() |
