Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
None
-
None
-
linux x64
-
62db6c18c7f1f60819783ed5e1340e9fc09e072e
Description
To reproduce: open qwidget.cpp, select all, delete. The operation will complete eventually, but take a very long time.
This is related to the increased QTextCursor usage by the C++ editor. Profiling shows that most of the time is spent in QList<QTextCursorPrivate*>::contains, called by QTextDocumentPrivate::adjustDocumentChangesAndCursors. Maybe make changedCursors a QSet if the order does not matter?
This problem does not exist in 2.0.0.