Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
7e4ef22c
Commit
7e4ef22c
authored
Nov 17, 2010
by
Rhys Weatherley
Browse files
Add extra variant flags for GLSL keywords
parent
f096b53b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/glsleditor/glsleditor.cpp
View file @
7e4ef22c
...
@@ -246,7 +246,10 @@ void GLSLTextEditor::updateDocumentNow()
...
@@ -246,7 +246,10 @@ void GLSLTextEditor::updateDocumentNow()
{
{
m_updateDocumentTimer
->
stop
();
m_updateDocumentTimer
->
stop
();
const
int
variant
=
Lexer
::
Variant_GLSL_Qt
;
// ### hardcoded
const
int
variant
=
Lexer
::
Variant_GLSL_Qt
|
// ### hardcoded
Lexer
::
Variant_GLSL_ES_100
|
Lexer
::
Variant_VertexShader
|
Lexer
::
Variant_FragmentShader
;
const
QString
contents
=
toPlainText
();
// get the code from the editor
const
QString
contents
=
toPlainText
();
// get the code from the editor
const
QByteArray
preprocessedCode
=
contents
.
toLatin1
();
// ### use the QtCreator C++ preprocessor.
const
QByteArray
preprocessedCode
=
contents
.
toLatin1
();
// ### use the QtCreator C++ preprocessor.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment