X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fsystraynotificationbackend.h;h=4f9092bf1285adf2a298c722197b04a877c9a8ba;hb=b8ce41ef6c0036d854f5bef0fb52e2a69dc5def2;hp=0e78600cc3be49e7ced075bb88c6d7eaab13f238;hpb=6eefdfc697067d184a589fc8a231b16316c09106;p=quassel.git diff --git a/src/qtui/systraynotificationbackend.h b/src/qtui/systraynotificationbackend.h index 0e78600c..4f9092bf 100644 --- a/src/qtui/systraynotificationbackend.h +++ b/src/qtui/systraynotificationbackend.h @@ -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; };