X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Flegacysystemtray.h;h=c4af3df87360c071e0b51d6a4de1f8ea7a77e760;hb=1a9450ecc5eeb5f987ceac790be84dcced02f028;hp=1bbef6401580790e0819158863579ebd71f7109d;hpb=f3d6f8088d8be6af9319a99fb8d2fee2837b540a;p=quassel.git diff --git a/src/qtui/legacysystemtray.h b/src/qtui/legacysystemtray.h index 1bbef640..c4af3df8 100644 --- a/src/qtui/legacysystemtray.h +++ b/src/qtui/legacysystemtray.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2014 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This file is free software; you can redistribute it and/or modify * @@ -23,13 +23,12 @@ #ifndef QT_NO_SYSTEMTRAYICON -#ifdef HAVE_KDE +#ifdef HAVE_KDE4 # include #else # include #endif -#include #include #include "systemtray.h" @@ -45,7 +44,6 @@ public: virtual bool isVisible() const; virtual inline bool isSystemTrayAvailable() const; - virtual QIcon stateIcon() const; // overriden to care about blinkState public slots: virtual void setState(State state); @@ -58,6 +56,9 @@ protected slots: protected: virtual void setMode(Mode mode); +private: + void updateIcon(); + private slots: void on_blinkTimeout(); void on_activated(QSystemTrayIcon::ActivationReason); @@ -70,7 +71,7 @@ private: bool _blinkState; uint _lastMessageId; -#ifdef HAVE_KDE +#ifdef HAVE_KDE4 KSystemTrayIcon *_trayIcon; #else QSystemTrayIcon *_trayIcon;