quickopen: optimize: remove model from SortFilter proxy model during populate

Authored by brauch on Aug 12 2018, 11:33 AM.


Before, it would update its internal mapping after inserting each and
every item, making opening the quickopen widget rather slow for
projects containing lots of files.
Setting dynamicSortFilter to false also does not seem to work with
QStandardItemModel, not quite sure why.

Diff Detail

R40 Kate
Lint Skipped
Unit Tests Skipped
brauch created this revision.Aug 12 2018, 11:33 AM
Restricted Application added a project: Kate. · View Herald TranscriptAug 12 2018, 11:33 AM
Restricted Application added a subscriber: kwrite-devel. · View Herald Transcript
brauch requested review of this revision.Aug 12 2018, 11:33 AM
cullmann accepted this revision.Aug 12 2018, 11:46 AM
cullmann added a subscriber: cullmann.

This should not hurt ;=)

This revision is now accepted and ready to land.Aug 12 2018, 11:46 AM

Nice patch. Please add a comment:
// Temporarily remove source model to avoid triggering unnecessary internal updates all the time

This revision was automatically updated to reflect the committed changes.