C++ editor: Drop extra selections before large editing operations.

Updating the text cursors that the extra selections are based on can
get quite slow if there are changes in a lot of positions - like when
reindenting a file.

Dropping some text cursors can increase performance significantly in
these cases.

Done-with: mae
This commit is contained in:
Christian Kamm
2010-07-06 12:27:22 +02:00
parent e1b74a647e
commit c514884207
2 changed files with 25 additions and 0 deletions

View File

@@ -500,6 +500,8 @@ private:
void updateHighlights();
void updateCurrentLineHighlight();
void maybeClearSomeExtraSelections(const QTextCursor &cursor);
void drawFoldingMarker(QPainter *painter, const QPalette &pal,
const QRect &rect,
bool expanded,