aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/glsleditor
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@qt.io>2019-12-04 08:19:53 +0100
committerNikolai Kosjar <nikolai.kosjar@qt.io>2019-12-18 10:15:50 +0000
commit548e7988852f2d3d9623877be132553704534b44 (patch)
tree6f5f96e19a1a2a3f6c34dd17c0e7002259e745b0 /src/plugins/glsleditor
parent0bd85b00a7de233d127067dbb8ddf0e1d6fa07b8 (diff)
TextEditor: Fix typo in a TextDocumentLayout function
Change-Id: I17153d9bfe9820f3ccc88f54bce1d494a522be33 Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/glsleditor')
-rw-r--r--src/plugins/glsleditor/glslhighlighter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/glsleditor/glslhighlighter.cpp b/src/plugins/glsleditor/glslhighlighter.cpp
index 417525dac6..c21e2ab1dc 100644
--- a/src/plugins/glsleditor/glslhighlighter.cpp
+++ b/src/plugins/glsleditor/glslhighlighter.cpp
@@ -77,7 +77,7 @@ void GlslHighlighter::highlightBlock(const QString &text)
state = lex.state(); // refresh the state
int foldingIndent = initialBraceDepth;
- if (TextBlockUserData *userData = TextDocumentLayout::testUserData(currentBlock())) {
+ if (TextBlockUserData *userData = TextDocumentLayout::textUserData(currentBlock())) {
userData->setFoldingIndent(0);
userData->setFoldingStartIncluded(false);
userData->setFoldingEndIncluded(false);