X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fsystraynotificationbackend.h;h=362ac9046b17b2aa0d1c205c288ed8c4df6dc6d4;hp=aa08b392a0b8b39f273c4ecc20ab55ea2a9fdd93;hb=694f9bfbf7f1af19108461c7e00d133e55082bce;hpb=fdfd62334f728bd05470c5191194d55027fec86e diff --git a/src/qtui/systraynotificationbackend.h b/src/qtui/systraynotificationbackend.h index aa08b392..362ac904 100644 --- a/src/qtui/systraynotificationbackend.h +++ b/src/qtui/systraynotificationbackend.h @@ -27,52 +27,56 @@ class QCheckBox; -class SystrayNotificationBackend : public AbstractNotificationBackend { - Q_OBJECT +class SystrayNotificationBackend : public AbstractNotificationBackend +{ + Q_OBJECT public: - SystrayNotificationBackend(QObject *parent = 0); + SystrayNotificationBackend(QObject *parent = 0); - void notify(const Notification &); - void close(uint notificationId); - virtual SettingsPage *createConfigWidget() const; + void notify(const Notification &); + void close(uint notificationId); + virtual SettingsPage *createConfigWidget() const; protected: - virtual bool eventFilter(QObject *obj, QEvent *event); + virtual bool eventFilter(QObject *obj, QEvent *event); private slots: - void notificationActivated(uint notificationId); - void notificationActivated(SystemTray::ActivationReason); + void notificationActivated(uint notificationId); + void notificationActivated(SystemTray::ActivationReason); - void animateChanged(const QVariant &); - void showBubbleChanged(const QVariant &); - void updateToolTip(); + void animateChanged(const QVariant &); + void showBubbleChanged(const QVariant &); + void updateToolTip(); private: - class ConfigWidget; + class ConfigWidget; - bool _showBubble; - bool _animate; - QList _notifications; - bool _blockActivation; + bool _showBubble; + bool _animate; + QList _notifications; + bool _blockActivation; }; -class SystrayNotificationBackend::ConfigWidget : public SettingsPage { - Q_OBJECT + +class SystrayNotificationBackend::ConfigWidget : public SettingsPage +{ + Q_OBJECT public: - ConfigWidget(QWidget *parent = 0); - void save(); - void load(); - bool hasDefaults() const; - void defaults(); + ConfigWidget(QWidget *parent = 0); + void save(); + void load(); + bool hasDefaults() const; + void defaults(); private slots: - void widgetChanged(); + void widgetChanged(); private: - QCheckBox *_showBubbleBox; - bool _showBubble; + QCheckBox *_showBubbleBox; + bool _showBubble; }; + #endif