X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fsettingspages%2Fhighlightsettingspage.h;h=6fe7c9771c812242b5ae0ae52b2a078a575b2dfc;hb=1a5c1814a0c52f6f35e65c7033b2f896bf1188e3;hp=57c0123b1ca2602b97b0d048f7d1946e205b931b;hpb=95700544764698a7e2a417c3616d9a6ff30a2fd6;p=quassel.git diff --git a/src/qtui/settingspages/highlightsettingspage.h b/src/qtui/settingspages/highlightsettingspage.h index 57c0123b..6fe7c977 100644 --- a/src/qtui/settingspages/highlightsettingspage.h +++ b/src/qtui/settingspages/highlightsettingspage.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2018 by the Quassel Project * + * Copyright (C) 2005-2020 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -21,10 +21,11 @@ #ifndef _HIGHLIGHTSETTINGSPAGE_H_ #define _HIGHLIGHTSETTINGSPAGE_H_ -#include #include +#include #include "settingspage.h" + #include "ui_highlightsettingspage.h" class HighlightSettingsPage : public SettingsPage @@ -32,21 +33,26 @@ class HighlightSettingsPage : public SettingsPage Q_OBJECT public: - HighlightSettingsPage(QWidget *parent = 0); + HighlightSettingsPage(QWidget* parent = nullptr); - bool hasDefaults() const; + bool hasDefaults() const override; public slots: - void save(); - void load(); - void defaults(); + void save() override; + void load() override; + void defaults() override; private slots: void widgetHasChanged(); - void addNewRow(QString name = tr("highlight rule"), bool regex = false, bool cs = false, bool enable = true, QString chanName = "", bool self = false); + void addNewRow(QString name = tr("highlight rule"), + bool regex = false, + bool cs = false, + bool enable = true, + QString chanName = "", + bool self = false); void removeSelectedRows(); - void selectRow(QTableWidgetItem *item); - void tableChanged(QTableWidgetItem *item); + void selectRow(QTableWidgetItem* item); + void tableChanged(QTableWidgetItem* item); /** * Event handler for Local Highlights Details button @@ -60,7 +66,8 @@ private: // regex: bool // name: QString // enable: bool - enum column { + enum column + { EnableColumn = 0, NameColumn = 1, RegExColumn = 2, @@ -74,5 +81,4 @@ private: bool testHasChanged(); }; - #endif