summaryrefslogtreecommitdiff
path: root/utils/wpseditor/gui/src/qsyntaxer.h
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2008-09-03 20:51:13 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2008-09-03 20:51:13 +0000
commitc1c1383e235a85d504f476b25c0b41bbfe8d927c (patch)
treeb3332b66c3ddd95f74c214ee1aec56997a1279d2 /utils/wpseditor/gui/src/qsyntaxer.h
parent4f26222a9f3cfe4d52f04785807df95e75c32d86 (diff)
downloadrockbox-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.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