diff options
Diffstat (limited to 'utils/wpseditor/gui/src/qsyntaxer.h')
-rw-r--r-- | utils/wpseditor/gui/src/qsyntaxer.h | 42 |
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 | ||
6 | class QTextCharFormat; | 6 | class QTextCharFormat; |
7 | 7 | ||
8 | class QSyntaxer : public QSyntaxHighlighter { | 8 | class 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; |
15 | public: | 15 | public: |
16 | QSyntaxer(QTextDocument *parent = 0); | 16 | QSyntaxer(QTextDocument *parent = 0); |
17 | 17 | ||
18 | protected: | 18 | protected: |
19 | void highlightBlock(const QString &text); | 19 | void highlightBlock(const QString &text); |
20 | }; | 20 | }; |
21 | #endif | 21 | #endif |