forked from qt-creator/qt-creator
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:
committed by
Erik Verbruggen
parent
53e8e0fb7b
commit
ff6e100824
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user