X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Flegacysystemtray.h;h=83ff201256c3ece58d1d2176b2f0e2af07f01fa6;hb=c144bdee0d8ab0c195b3088f5c6e57e372e526f7;hp=e2bc3386e3753acb6634f19234f835a355f05525;hpb=a888a2886dc1466eb0b1bb3591f43350623c6330;p=quassel.git diff --git a/src/qtui/legacysystemtray.h b/src/qtui/legacysystemtray.h index e2bc3386..83ff2012 100644 --- a/src/qtui/legacysystemtray.h +++ b/src/qtui/legacysystemtray.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2018 by the Quassel Project * + * Copyright (C) 2005-2020 by the Quassel Project * * devel@quassel-irc.org * * * * This file is free software; you can redistribute it and/or modify * @@ -22,27 +22,26 @@ #ifndef QT_NO_SYSTEMTRAYICON -#include +# include +# include -#ifdef HAVE_KDE4 -# include -#else -# include -#endif - -#include "systemtray.h" +# include "systemtray.h" class LegacySystemTray : public SystemTray { Q_OBJECT public: - explicit LegacySystemTray(QWidget *parent); + explicit LegacySystemTray(QWidget* parent); bool isSystemTrayAvailable() const override; public slots: - void showMessage(const QString &title, const QString &message, MessageIcon icon = Information, int msTimeout = 10000, uint notificationId = 0) override; + void showMessage(const QString& title, + const QString& message, + MessageIcon icon = Information, + int msTimeout = 10000, + uint notificationId = 0) override; void closeMessage(uint notificationId) override; private slots: @@ -56,13 +55,9 @@ private slots: void updateToolTip(); private: - uint _lastMessageId {0}; + uint _lastMessageId{0}; -#ifdef HAVE_KDE4 - KSystemTrayIcon *_trayIcon; -#else - QSystemTrayIcon *_trayIcon; -#endif + QSystemTrayIcon* _trayIcon; }; #endif /* QT_NO_SYSTEMTRAYICON */