aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/syntaxhighlighter.cpp
diff options
context:
space:
mode:
authorArtem Sokolovskii <artem.sokolovskii@qt.io>2023-12-14 11:17:42 +0100
committerArtem Sokolovskii <artem.sokolovskii@qt.io>2023-12-19 11:50:24 +0000
commit4a8e22e3f227eb0c9e4f62f3efa613b7bfec23ef (patch)
treebfebd87df3ed214698f4a9cb435253e0535c2bdf /src/plugins/texteditor/syntaxhighlighter.cpp
parent13b48144a6a3ebcfe0135c7c263d69b0c20872cb (diff)
SyntaxHighlighter: Add signal that highlighting is finished
Added function syntaxInfoUpdated shows whether highlighting inProgress or Done and signal highlightingFinished. Change-Id: I4cf2b5cfa97d73c882e69ee1df81497ec50a81f7 Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/texteditor/syntaxhighlighter.cpp')
-rw-r--r--src/plugins/texteditor/syntaxhighlighter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/texteditor/syntaxhighlighter.cpp b/src/plugins/texteditor/syntaxhighlighter.cpp
index 36c3977c5e..e37b0b104b 100644
--- a/src/plugins/texteditor/syntaxhighlighter.cpp
+++ b/src/plugins/texteditor/syntaxhighlighter.cpp
@@ -221,6 +221,9 @@ void SyntaxHighlighterPrivate::reformatBlocks(int from, int charsRemoved, int ch
formatChanges.clear();
foldValidator.finalize();
+ SyntaxHighlighter::Result res;
+ res.m_state = SyntaxHighlighter::State::Done;
+ vecRes << res;
emit q->resultsReady(vecRes);
}