X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fsystraynotificationbackend.h;h=be428ff276753028f1a9949d0437e9791e4b337c;hb=b83e459f4ed6deda6e46b7ae12e49e197ef3bb12;hp=0e78600cc3be49e7ced075bb88c6d7eaab13f238;hpb=6eefdfc697067d184a589fc8a231b16316c09106;p=quassel.git diff --git a/src/qtui/systraynotificationbackend.h b/src/qtui/systraynotificationbackend.h index 0e78600c..be428ff2 100644 --- a/src/qtui/systraynotificationbackend.h +++ b/src/qtui/systraynotificationbackend.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 program is free software; you can redistribute it and/or modify * @@ -31,20 +31,20 @@ class SystrayNotificationBackend : public AbstractNotificationBackend Q_OBJECT public: - SystrayNotificationBackend(QObject *parent = nullptr); + SystrayNotificationBackend(QObject* parent = nullptr); - void notify(const Notification &) override; + void notify(const Notification&) override; void close(uint notificationId) override; - SettingsPage *createConfigWidget() const override; + SettingsPage* createConfigWidget() const override; protected: - bool eventFilter(QObject *obj, QEvent *event) override; + bool eventFilter(QObject* obj, QEvent* event) override; private slots: void onNotificationActivated(uint notificationId); void onNotificationActivated(SystemTray::ActivationReason); - void showBubbleChanged(const QVariant &); + void showBubbleChanged(const QVariant&); void updateToolTip(); private: @@ -55,13 +55,12 @@ private: bool _blockActivation{false}; }; - class SystrayNotificationBackend::ConfigWidget : public SettingsPage { Q_OBJECT public: - ConfigWidget(QWidget *parent = nullptr); + ConfigWidget(QWidget* parent = nullptr); void save() override; void load() override; bool hasDefaults() const override; @@ -71,6 +70,6 @@ private slots: void widgetChanged(); private: - QCheckBox *_showBubbleBox; + QCheckBox* _showBubbleBox; bool _showBubble; };