X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fsettingspages%2Fhighlightsettingspage.h;h=170f892f2eea24581dd368e17affa0bb1c05f63c;hp=6899c36ed8e69466db4bb3db7b65bdadecdc0a70;hb=cc6e7c08709c4e761e2fd9c2e322751015497003;hpb=39328183a6a87c6eb10a9dbbffcd5d65bf154a1f diff --git a/src/qtui/settingspages/highlightsettingspage.h b/src/qtui/settingspages/highlightsettingspage.h index 6899c36e..170f892f 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-2019 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 = nullptr); + 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