Ignore:
Timestamp:
Feb 16, 2019, 6:24:18 PM (6 years ago)
Author:
s10k
Message:

slightly modifications to allow subclassing, added Q_OBJECT macro, since usually all classes derived from QObject should use it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • s10k/CommonLibs/jsonhighlighter/highlighter.cpp

    r1096 r1110  
    3232void Highlighter::highlightBlock(const QString &text)
    3333{
    34     for (const HighlightingRule &rule : rules) {
     34    foreach (const HighlightingRule &rule, rules) {
    3535        QRegExp expression(rule.pattern);
    3636        int index = expression.indexIn(text);
Note: See TracChangeset for help on using the changeset viewer.