Fix long freeze when reloading files

The semantic highlighting and all the extra selections create
many cursors, this does cost time in setText().
Solution: remove all extra selections on reload.

Reviewed-by: Oswald Buddenhagen
Task-number: QTCREATORBUG-1720
This commit is contained in:
mae
2010-06-24 20:13:13 +02:00
parent 5554894724
commit 6f67360efe
2 changed files with 22 additions and 8 deletions

View File

@@ -304,8 +304,8 @@ protected:
private slots:
void editorContentsChange(int position, int charsRemoved, int charsAdded);
void memorizeCursorPosition();
void restoreCursorPosition();
void documentAboutToBeReloaded();
void documentReloaded();
void highlightSearchResults(const QString &txt, Find::IFindSupport::FindFlags findFlags);
void setFindScope(const QTextCursor &start, const QTextCursor &end, int);
void currentEditorChanged(Core::IEditor *editor);