forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user