X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fsystraynotificationbackend.h;h=be428ff276753028f1a9949d0437e9791e4b337c;hb=a95ad2de573027f9bee36db972bcae4195168d0c;hp=d8af7e39fbafc39fd80f23ff15f2914d380b743d;hpb=158443f71d48215eea8b47b836b61afd77654b78;p=quassel.git diff --git a/src/qtui/systraynotificationbackend.h b/src/qtui/systraynotificationbackend.h index d8af7e39..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 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: @@ -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; };