/***************************************************************************
- * Copyright (C) 2013 by the Quassel Project *
+ * Copyright (C) 2013-2018 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
Q_OBJECT
public:
- DockManagerNotificationBackend(QObject *parent = 0);
+ DockManagerNotificationBackend(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 enabledChanged(const QVariant &);
bool _enabled;
bool _available;
QDBusConnection _bus;
- QDBusInterface *_dock;
- QDBusInterface *_item;
- int _count;
+ QDBusInterface *_dock{nullptr};
+ QDBusInterface *_item{nullptr};
+ int _count{0};
};
Q_OBJECT
public:
- ConfigWidget(bool enabled, QWidget *parent = 0);
+ ConfigWidget(bool enabled, QWidget *parent = nullptr);
- void save();
- void load();
- bool hasDefaults() const;
- void defaults();
+ void save() override;
+ void load() override;
+ bool hasDefaults() const override;
+ void defaults() override;
private slots:
void widgetChanged();