Changeset 1110 for s10k/CommonLibs/jsonhighlighter
- Timestamp:
- Feb 16, 2019, 6:24:18 PM (6 years ago)
- Location:
- s10k/CommonLibs/jsonhighlighter
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
s10k/CommonLibs/jsonhighlighter/highlighter.cpp
r1096 r1110 32 32 void Highlighter::highlightBlock(const QString &text) 33 33 { 34 for (const HighlightingRule &rule :rules) {34 foreach (const HighlightingRule &rule, rules) { 35 35 QRegExp expression(rule.pattern); 36 36 int index = expression.indexIn(text); -
s10k/CommonLibs/jsonhighlighter/highlighter.h
r1073 r1110 10 10 class Highlighter: public QSyntaxHighlighter 11 11 { 12 Q_OBJECT 12 13 public: 13 14 Highlighter(QTextDocument *parent = 0); 14 pr ivate:15 protected: 15 16 struct HighlightingRule 16 17 {
Note:
See TracChangeset
for help on using the changeset viewer.