X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fsettingspages%2Fhighlightsettingspage.h;h=29d8c1f83e840ecd489736b012c950a328dad04d;hp=d4fd3d3af94d6057726969c501b68af1b957d6a1;hb=694f9bfbf7f1af19108461c7e00d133e55082bce;hpb=61c8d84d1c849373e0f115dc748ed45cff95287d diff --git a/src/qtui/settingspages/highlightsettingspage.h b/src/qtui/settingspages/highlightsettingspage.h index d4fd3d3a..29d8c1f8 100644 --- a/src/qtui/settingspages/highlightsettingspage.h +++ b/src/qtui/settingspages/highlightsettingspage.h @@ -27,40 +27,41 @@ #include "settingspage.h" #include "ui_highlightsettingspage.h" -class HighlightSettingsPage : public SettingsPage { - Q_OBJECT +class HighlightSettingsPage : public SettingsPage +{ + Q_OBJECT - public: +public: HighlightSettingsPage(QWidget *parent = 0); bool hasDefaults() const; - public slots: +public slots: void save(); void load(); void defaults(); - private slots: +private slots: void widgetHasChanged(); void addNewRow(QString name = tr("highlight rule"), bool regex = false, bool cs = true, bool enable = true, QString chanName = "", bool self = false); void removeSelectedRows(); void selectRow(QTableWidgetItem *item); void tableChanged(QTableWidgetItem *item); - private: +private: Ui::HighlightSettingsPage ui; - QVariantList highlightList; + QVariantList highlightList; // QVariant -> QHash: // regex: bool // name: QString // enable: bool enum column { - NameColumn = 0, - RegExColumn = 1, - CsColumn = 2, - EnableColumn = 3, - ChanColumn = 4, - ColumnCount = 5 + NameColumn = 0, + RegExColumn = 1, + CsColumn = 2, + EnableColumn = 3, + ChanColumn = 4, + ColumnCount = 5 }; void emptyTable(); @@ -68,4 +69,5 @@ class HighlightSettingsPage : public SettingsPage { bool testHasChanged(); }; + #endif