/***************************************************************************
- * 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 *
#ifndef QT_NO_SYSTEMTRAYICON
-#ifdef HAVE_KDE
+#ifdef HAVE_KDE4
# include <KSystemTrayIcon>
#else
# include <QSystemTrayIcon>
#endif
-#include <QIcon>
#include <QTimer>
#include "systemtray.h"
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);
protected:
virtual void setMode(Mode mode);
+private:
+ void updateIcon();
+
private slots:
void on_blinkTimeout();
void on_activated(QSystemTrayIcon::ActivationReason);
bool _blinkState;
uint _lastMessageId;
-#ifdef HAVE_KDE
+#ifdef HAVE_KDE4
KSystemTrayIcon *_trayIcon;
#else
QSystemTrayIcon *_trayIcon;