X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fsettingspages%2Fignorelistsettingspage.h;h=41c39713a529cef43a5ae409f1073f1d289cd842;hb=80950b87640acfb2a75902f8aabf3419da094bf4;hp=99308ed9137ca315affc21ca7e8ebcd592eca2b8;hpb=e50ae7a06fc4e5d3a911c361d30953410deab609;p=quassel.git diff --git a/src/qtui/settingspages/ignorelistsettingspage.h b/src/qtui/settingspages/ignorelistsettingspage.h index 99308ed9..41c39713 100644 --- a/src/qtui/settingspages/ignorelistsettingspage.h +++ b/src/qtui/settingspages/ignorelistsettingspage.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 * @@ -40,11 +40,11 @@ class IgnoreListDelegate : public QStyledItemDelegate Q_OBJECT public: - IgnoreListDelegate(QWidget *parent = 0) : QStyledItemDelegate(parent) {} + IgnoreListDelegate(QWidget *parent = nullptr) : QStyledItemDelegate(parent) {} void paint(QPainter *painter, const QStyleOptionViewItem &option, - const QModelIndex &index) const; + const QModelIndex &index) const override; bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, - const QModelIndex &index); + const QModelIndex &index) override; }; @@ -53,7 +53,7 @@ class IgnoreListEditDlg : public QDialog Q_OBJECT public: - IgnoreListEditDlg(const IgnoreListManager::IgnoreListItem &item, QWidget *parent = 0, bool enabled = false); + IgnoreListEditDlg(const IgnoreListManager::IgnoreListItem &item, QWidget *parent = nullptr, bool enabled = false); inline IgnoreListManager::IgnoreListItem ignoreListItem() { return _ignoreListItem; } void enableOkButton(bool state); @@ -77,16 +77,16 @@ class IgnoreListSettingsPage : public SettingsPage Q_OBJECT public: - IgnoreListSettingsPage(QWidget *parent = 0); - ~IgnoreListSettingsPage(); - virtual inline bool hasDefaults() const { return false; } - virtual inline bool needsCoreConnection() const { return true; } + IgnoreListSettingsPage(QWidget *parent = nullptr); + ~IgnoreListSettingsPage() override; + inline bool hasDefaults() const override { return false; } + inline bool needsCoreConnection() const override { return true; } void editIgnoreRule(const QString &ignoreRule); public slots: - void save(); - void load(); - void defaults(); + void save() override; + void load() override; + void defaults() override; void newIgnoreRule(QString rule = QString()); private slots: