C++: prevent cloning the QTextDocument on the UI thread.

Now the document contents (the text) is passed to the background thread,
which in turn will recreate the text document.

Change-Id: I7af47348fe162b53b8b440f1561a9919bf3c381a
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
Erik Verbruggen
2013-02-26 11:15:38 +01:00
committed by Erik Verbruggen
parent 53e8e0fb7b
commit ff6e100824
5 changed files with 23 additions and 11 deletions

View File

@@ -58,7 +58,8 @@ public:
virtual QString textAt(int position, int length) const = 0;
virtual const Core::IDocument *document() const = 0;
virtual QTextDocument *textDocument() const = 0;
virtual void detach(QThread *destination) = 0;
virtual void prepareForAsyncUse() = 0;
virtual void recreateTextDocument() = 0;
virtual AssistReason reason() const = 0;
};