Though that doesn't save us from the fact that the highlight edit thingy
needs a serious revamp, it's utterly fugly.
rule["Enable"].toBool(),
rule["CS"].toBool() ? Qt::CaseSensitive : Qt::CaseInsensitive,
rule["RegEx"].toBool(),
rule["Enable"].toBool(),
rule["CS"].toBool() ? Qt::CaseSensitive : Qt::CaseInsensitive,
rule["RegEx"].toBool(),
- rule["Chan"].toString());
+ rule["Channel"].toString());
ui.highlightTable->horizontalHeaderItem(HighlightSettingsPage::CsColumn)->setToolTip("<b>CS</b>: This option determines if the highlight rule should be interpreted <b>case sensitive</b>.");
ui.highlightTable->horizontalHeaderItem(HighlightSettingsPage::CsColumn)->setWhatsThis("<b>CS</b>: This option determines if the highlight rule should be interpreted <b>case sensitive</b>.");
ui.highlightTable->horizontalHeaderItem(HighlightSettingsPage::CsColumn)->setToolTip("<b>CS</b>: This option determines if the highlight rule should be interpreted <b>case sensitive</b>.");
ui.highlightTable->horizontalHeaderItem(HighlightSettingsPage::CsColumn)->setWhatsThis("<b>CS</b>: This option determines if the highlight rule should be interpreted <b>case sensitive</b>.");
- ui.highlightTable->horizontalHeaderItem(HighlightSettingsPage::ChanColumn)->setToolTip("<b>Chan</b>: This regular expression determines for which <b>Channels</b> the highlight rule works. Leave blank to match any channel. Put <b>!</b> in the beginning to negate. Case insensitive.");
- ui.highlightTable->horizontalHeaderItem(HighlightSettingsPage::ChanColumn)->setWhatsThis("<b>Chan</b>: This regular expression determines for which <b>Channels</b> the highlight rule works. Leave blank to match any channel. Put <b>!</b> in the beginning to negate. Case insensitive.");
+ ui.highlightTable->horizontalHeaderItem(HighlightSettingsPage::ChanColumn)->setToolTip("<b>Channel</b>: This regular expression determines for which <b>channels</b> the highlight rule works. Leave blank to match any channel. Put <b>!</b> in the beginning to negate. Case insensitive.");
+ ui.highlightTable->horizontalHeaderItem(HighlightSettingsPage::ChanColumn)->setWhatsThis("<b>Channel</b>: This regular expression determines for which <b>channels</b> the highlight rule works. Leave blank to match any channel. Put <b>!</b> in the beginning to negate. Case insensitive.");
ui.highlightTable->horizontalHeader()->setResizeMode(HighlightSettingsPage::NameColumn, QHeaderView::Stretch);
ui.highlightTable->horizontalHeader()->setResizeMode(HighlightSettingsPage::RegExColumn, QHeaderView::ResizeToContents);
ui.highlightTable->horizontalHeader()->setResizeMode(HighlightSettingsPage::NameColumn, QHeaderView::Stretch);
ui.highlightTable->horizontalHeader()->setResizeMode(HighlightSettingsPage::RegExColumn, QHeaderView::ResizeToContents);
highlightRule["RegEx"] = regex;
highlightRule["CS"] = cs;
highlightRule["Enable"] = enable;
highlightRule["RegEx"] = regex;
highlightRule["CS"] = cs;
highlightRule["Enable"] = enable;
- highlightRule["Chan"] = chanName;
+ highlightRule["Channel"] = chanName;
highlightList.append(highlightRule);
}
highlightList.append(highlightRule);
}
case HighlightSettingsPage::ChanColumn:
if(!item->text().isEmpty() && item->text().trimmed().isEmpty())
item->setText("");
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;
break;
}
highlightList[item->row()] = highlightRule;
bool regex = highlightRule["RegEx"].toBool();
bool cs = highlightRule["CS"].toBool();
bool enable = highlightRule["Enable"].toBool();
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);
}
addNewRow(name, regex, cs, enable, chanName, true);
}
</column>
<column>
<property name="text">
</column>
<column>
<property name="text">
+ <string>Channel</string>
</property>
</column>
</widget>
</property>
</column>
</widget>