diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2008-09-03 20:51:13 +0000 |
---|---|---|
committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2008-09-03 20:51:13 +0000 |
commit | c1c1383e235a85d504f476b25c0b41bbfe8d927c (patch) | |
tree | b3332b66c3ddd95f74c214ee1aec56997a1279d2 /utils/wpseditor/gui/src/qsyntaxer.h | |
parent | 4f26222a9f3cfe4d52f04785807df95e75c32d86 (diff) | |
download | rockbox-c1c1383e235a85d504f476b25c0b41bbfe8d927c.tar.gz rockbox-c1c1383e235a85d504f476b25c0b41bbfe8d927c.zip |
* WPS editor: set eol-style
* Add CLI-only screenshot utility (using libwps)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18402 a1c6a512-1295-4272-9138-f99709370657
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 |