diff options
author | Anton Kudryavtsev <a.kudryavtsev@netris.ru> | 2016-02-17 12:26:43 +0300 |
---|---|---|
committer | Anton Kudryavtsev <a.kudryavtsev@netris.ru> | 2016-02-24 08:06:32 +0000 |
commit | ad9340de99a9961a8d34c7e430638a7c01c3d2be (patch) | |
tree | b41f698c3353e5ead9d7a17c8b0cf07314f89c6f /tests/auto/concurrent | |
parent | d392826959257c9e407fb32d1de62b0b56a2c052 (diff) |
QListView: avoid quadratic complexity in selectedIndexes().
Use std::remove_if(), which is linear, instead of looping
over erase(it), which turns the loop quadratic.
Reorder condition: call cheap non-virtual QModelIndex::column()
first, then virtuals parent(), and isIndexHidden().
Change-Id: Id46ee1297b91906332eeca98f69372ef887ac330
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Edward Welbourne <edward.welbourne@theqtcompany.com>
Diffstat (limited to 'tests/auto/concurrent')
0 files changed, 0 insertions, 0 deletions