X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Flegacysystemtray.h;h=7f1b66c501de73afd1cc7af42082cd3bb986e718;hp=8ef478eb61bab2cada9cb3feb170e6bb62688b1f;hb=edc55b1f86cf613a332eeeb5d85537a54120dfa5;hpb=ab7ef4d24f62b5848b628482b7762ebfc0b53e1a diff --git a/src/qtui/legacysystemtray.h b/src/qtui/legacysystemtray.h index 8ef478eb..7f1b66c5 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-2019 by the Quassel Project * * devel@quassel-irc.org * * * * This file is free software; you can redistribute it and/or modify * @@ -22,22 +22,26 @@ #ifndef QT_NO_SYSTEMTRAYICON -#include -#include +# include +# include -#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: @@ -51,9 +55,9 @@ private slots: void updateToolTip(); private: - uint _lastMessageId {0}; + uint _lastMessageId{0}; - QSystemTrayIcon *_trayIcon; + QSystemTrayIcon* _trayIcon; }; #endif /* QT_NO_SYSTEMTRAYICON */