- QVariantList::const_iterator iterEnd = varList.constEnd();
- while(iter != iterEnd) {
- QVariantMap rule;
- _highlightRules << HighlightRule(rule["name"].toString(),
- rule["enable"].toBool(),
- rule["cs"].toBool() ? Qt::CaseSensitive : Qt::CaseInsensitive,
- rule["regex"].toBool());
+ while(iter != varList.constEnd()) {
+ QVariantMap rule = iter->toMap();
+ _highlightRules << HighlightRule(rule["Name"].toString(),
+ rule["Enable"].toBool(),
+ rule["CS"].toBool() ? Qt::CaseSensitive : Qt::CaseInsensitive,
+ rule["RegEx"].toBool());