X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fsystraynotificationbackend.h;h=83006d21f3b171bedb274a933a90d26cd3ab5a36;hp=82425c3b68c3cbcfe9f44d04718edb1572aa497d;hb=cc6e7c08709c4e761e2fd9c2e322751015497003;hpb=e8a39b4c3c92e193ab861a3fea84a261bb6fbd24 diff --git a/src/qtui/systraynotificationbackend.h b/src/qtui/systraynotificationbackend.h index 82425c3b..83006d21 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-2019 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 notificationActivated(uint notificationId); - void notificationActivated(SystemTray::ActivationReason); + void onNotificationActivated(uint notificationId); + void onNotificationActivated(SystemTray::ActivationReason); - void showBubbleChanged(const QVariant &); + void showBubbleChanged(const QVariant&); void updateToolTip(); private: @@ -52,16 +52,15 @@ private: bool _showBubble; QList _notifications; - bool _blockActivation; + 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; };