X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fqtui%2Fsettingspages%2Fignorelistsettingspage.h;h=7dc687a7dc7ef397ec42ebc89a106671a0e92166;hb=6eefdfc697067d184a589fc8a231b16316c09106;hp=99308ed9137ca315affc21ca7e8ebcd592eca2b8;hpb=921e54680da16fcf2adb7a90506875aceb6633a4;p=quassel.git diff --git a/src/qtui/settingspages/ignorelistsettingspage.h b/src/qtui/settingspages/ignorelistsettingspage.h index 99308ed9..7dc687a7 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,17 +77,17 @@ 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 newIgnoreRule(QString rule = QString()); + void save() override; + void load() override; + void defaults() override; + void newIgnoreRule(const QString &rule = {}); private slots: void enableDialog(bool);