summaryrefslogtreecommitdiff
path: root/utils/wpseditor/gui/src/qsyntaxer.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/wpseditor/gui/src/qsyntaxer.h')
-rw-r--r--utils/wpseditor/gui/src/qsyntaxer.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/utils/wpseditor/gui/src/qsyntaxer.h b/utils/wpseditor/gui/src/qsyntaxer.h
index 9cecd3e5ed..b85651cf69 100644
--- a/utils/wpseditor/gui/src/qsyntaxer.h
+++ b/utils/wpseditor/gui/src/qsyntaxer.h
@@ -1,21 +1,21 @@
1#ifndef QSYNTAXER_H 1#ifndef QSYNTAXER_H
2#define QSYNTAXER_H 2#define QSYNTAXER_H
3// 3//
4#include <QSyntaxHighlighter> 4#include <QSyntaxHighlighter>
5 5
6class QTextCharFormat; 6class QTextCharFormat;
7 7
8class QSyntaxer : public QSyntaxHighlighter { 8class QSyntaxer : public QSyntaxHighlighter {
9 Q_OBJECT 9 Q_OBJECT
10 struct HighlightingRule { 10 struct HighlightingRule {
11 QRegExp pattern; 11 QRegExp pattern;
12 QTextCharFormat format; 12 QTextCharFormat format;
13 }; 13 };
14 QMap<QString,HighlightingRule> hrules; 14 QMap<QString,HighlightingRule> hrules;
15public: 15public:
16 QSyntaxer(QTextDocument *parent = 0); 16 QSyntaxer(QTextDocument *parent = 0);
17 17
18protected: 18protected:
19 void highlightBlock(const QString &text); 19 void highlightBlock(const QString &text);
20}; 20};
21#endif 21#endif