Fixed the sorting of search results
The search results window assumed the files were searched in sorted order, which is not always the case especially since "find usages" can now operate in several threads. This change makes sure that the list of files in the search results is always sorted, using a binary search to find the right index to insert new files. Reviewed-by: con
Showing
- src/plugins/find/searchresulttreeitems.cpp 18 additions, 1 deletionsrc/plugins/find/searchresulttreeitems.cpp
- src/plugins/find/searchresulttreeitems.h 3 additions, 0 deletionssrc/plugins/find/searchresulttreeitems.h
- src/plugins/find/searchresulttreemodel.cpp 27 additions, 17 deletionssrc/plugins/find/searchresulttreemodel.cpp
- src/plugins/find/searchresulttreemodel.h 6 additions, 6 deletionssrc/plugins/find/searchresulttreemodel.h
- src/plugins/find/searchresulttreeview.cpp 4 additions, 5 deletionssrc/plugins/find/searchresulttreeview.cpp
Loading
Please register or sign in to comment