X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fknotificationbackend.h;h=3b0a4af1f25f4f02cf48d7fd6d1b19f00283b817;hp=2f21c9ef47450ea50c11d2f8e4e5a1f8c36ec486;hb=f9efdde7f3a6004af8f834c409cfa6ae1d877692;hpb=e50ae7a06fc4e5d3a911c361d30953410deab609 diff --git a/src/qtui/knotificationbackend.h b/src/qtui/knotificationbackend.h index 2f21c9ef..3b0a4af1 100644 --- a/src/qtui/knotificationbackend.h +++ b/src/qtui/knotificationbackend.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -18,8 +18,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef KNOTIFICATIONBACKEND_H_ -#define KNOTIFICATIONBACKEND_H_ +#pragma once #include @@ -35,11 +34,11 @@ class KNotificationBackend : public AbstractNotificationBackend Q_OBJECT public: - KNotificationBackend(QObject *parent = 0); + KNotificationBackend(QObject *parent = nullptr); - void notify(const Notification &); - void close(uint notificationId); - virtual SettingsPage *createConfigWidget() const; + void notify(const Notification &) override; + void close(uint notificationId) override; + SettingsPage *createConfigWidget() const override; private slots: void notificationActivated(); @@ -52,7 +51,7 @@ private: void removeNotificationById(uint id); void updateToolTip(); - QList > > _notifications; + QList>> _notifications; }; @@ -61,10 +60,10 @@ class KNotificationBackend::ConfigWidget : public SettingsPage Q_OBJECT public: - ConfigWidget(QWidget *parent = 0); + ConfigWidget(QWidget *parent = nullptr); - void save(); - void load(); + void save() override; + void load() override; private slots: void widgetChanged(bool); @@ -72,6 +71,3 @@ private slots: private: KNotifyConfigWidget *_widget; }; - - -#endif