From 3202bf5340396b5c6b467e8d92d808b1cbbbf7fb Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Tue, 22 May 2012 21:12:57 +0200 Subject: [PATCH] Chan -> Channel, it's just nicer in user-visible strings Though that doesn't save us from the fact that the highlight edit thingy needs a serious revamp, it's utterly fugly. --- src/qtui/qtuimessageprocessor.cpp | 2 +- src/qtui/settingspages/highlightsettingspage.cpp | 10 +++++----- src/qtui/settingspages/highlightsettingspage.ui | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/qtui/qtuimessageprocessor.cpp b/src/qtui/qtuimessageprocessor.cpp index aa24f08c..4754a024 100644 --- a/src/qtui/qtuimessageprocessor.cpp +++ b/src/qtui/qtuimessageprocessor.cpp @@ -173,7 +173,7 @@ void QtUiMessageProcessor::highlightListChanged(const QVariant &variant) { rule["Enable"].toBool(), rule["CS"].toBool() ? Qt::CaseSensitive : Qt::CaseInsensitive, rule["RegEx"].toBool(), - rule["Chan"].toString()); + rule["Channel"].toString()); iter++; } } diff --git a/src/qtui/settingspages/highlightsettingspage.cpp b/src/qtui/settingspages/highlightsettingspage.cpp index 22b4afea..5005b3d4 100644 --- a/src/qtui/settingspages/highlightsettingspage.cpp +++ b/src/qtui/settingspages/highlightsettingspage.cpp @@ -38,8 +38,8 @@ HighlightSettingsPage::HighlightSettingsPage(QWidget *parent) ui.highlightTable->horizontalHeaderItem(HighlightSettingsPage::CsColumn)->setToolTip("CS: This option determines if the highlight rule should be interpreted case sensitive."); ui.highlightTable->horizontalHeaderItem(HighlightSettingsPage::CsColumn)->setWhatsThis("CS: This option determines if the highlight rule should be interpreted case sensitive."); - ui.highlightTable->horizontalHeaderItem(HighlightSettingsPage::ChanColumn)->setToolTip("Chan: This regular expression determines for which Channels the highlight rule works. Leave blank to match any channel. Put ! in the beginning to negate. Case insensitive."); - ui.highlightTable->horizontalHeaderItem(HighlightSettingsPage::ChanColumn)->setWhatsThis("Chan: This regular expression determines for which Channels the highlight rule works. Leave blank to match any channel. Put ! in the beginning to negate. Case insensitive."); + ui.highlightTable->horizontalHeaderItem(HighlightSettingsPage::ChanColumn)->setToolTip("Channel: This regular expression determines for which channels the highlight rule works. Leave blank to match any channel. Put ! in the beginning to negate. Case insensitive."); + ui.highlightTable->horizontalHeaderItem(HighlightSettingsPage::ChanColumn)->setWhatsThis("Channel: This regular expression determines for which channels the highlight rule works. Leave blank to match any channel. Put ! in the beginning to negate. Case insensitive."); ui.highlightTable->horizontalHeader()->setResizeMode(HighlightSettingsPage::NameColumn, QHeaderView::Stretch); ui.highlightTable->horizontalHeader()->setResizeMode(HighlightSettingsPage::RegExColumn, QHeaderView::ResizeToContents); @@ -116,7 +116,7 @@ void HighlightSettingsPage::addNewRow(QString name, bool regex, bool cs, bool en highlightRule["RegEx"] = regex; highlightRule["CS"] = cs; highlightRule["Enable"] = enable; - highlightRule["Chan"] = chanName; + highlightRule["Channel"] = chanName; highlightList.append(highlightRule); } @@ -182,7 +182,7 @@ void HighlightSettingsPage::tableChanged(QTableWidgetItem *item) { case HighlightSettingsPage::ChanColumn: if(!item->text().isEmpty() && item->text().trimmed().isEmpty()) item->setText(""); - highlightRule["Chan"] = item->text(); + highlightRule["Channel"] = item->text(); break; } highlightList[item->row()] = highlightRule; @@ -200,7 +200,7 @@ void HighlightSettingsPage::load() { bool regex = highlightRule["RegEx"].toBool(); bool cs = highlightRule["CS"].toBool(); bool enable = highlightRule["Enable"].toBool(); - QString chanName = highlightRule["Chan"].toString(); + QString chanName = highlightRule["Channel"].toString(); addNewRow(name, regex, cs, enable, chanName, true); } diff --git a/src/qtui/settingspages/highlightsettingspage.ui b/src/qtui/settingspages/highlightsettingspage.ui index 827f255f..9c8894e7 100644 --- a/src/qtui/settingspages/highlightsettingspage.ui +++ b/src/qtui/settingspages/highlightsettingspage.ui @@ -50,7 +50,7 @@ - Chan + Channel -- 2.20.1