summaryrefslogtreecommitdiff
path: root/src/plugins/glsleditor/glslhighlighter.h
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2010-11-26 10:59:33 +0100
committerRoberto Raggi <roberto.raggi@nokia.com>2010-11-26 11:00:21 +0100
commita794154dd766d6be56f164178b35ed50643ca1cd (patch)
tree5a6545706427fa130ea1d7d52a9a39d666455391 /src/plugins/glsleditor/glslhighlighter.h
parent20b58e4e6e1fbf1aa22fd597d33d6c7bca52fe45 (diff)
downloadqt-creator-a794154dd766d6be56f164178b35ed50643ca1cd.tar.gz
Added indenter, code folding and automagically brace insertion to the GLSL editor.
Diffstat (limited to 'src/plugins/glsleditor/glslhighlighter.h')
-rw-r--r--src/plugins/glsleditor/glslhighlighter.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/glsleditor/glslhighlighter.h b/src/plugins/glsleditor/glslhighlighter.h
index b92763bc6b..8b31121d49 100644
--- a/src/plugins/glsleditor/glslhighlighter.h
+++ b/src/plugins/glsleditor/glslhighlighter.h
@@ -62,6 +62,8 @@ public:
protected:
void highlightBlock(const QString &text);
+ void highlightLine(const QString &text, int position, int length, const QTextCharFormat &format);
+ bool isPPKeyword(const QStringRef &text) const;
private:
QTextCharFormat m_formats[NumGLSLFormats];