diff options
author | Arttu Tarkiainen <arttu.tarkiainen@qt.io> | 2022-12-07 13:32:29 +0200 |
---|---|---|
committer | Arttu Tarkiainen <arttu.tarkiainen@qt.io> | 2022-12-12 13:54:35 +0200 |
commit | b7929635dcdbd01135c04e0a7ffc8fa29d647d4d (patch) | |
tree | 50d9e99af36847a973c5c8ef594fb5436f5d0477 /src/libs/installer/packagemanagercore_p.cpp | |
parent | 0e79bc653ac18bbd3f391298ae162880582ae0ce (diff) |
Fix freezing UI while searching components
This affected maintenance tool, which by default shows multiple header
columns for the component tree view.
After typing in a search pattern, the component indexes from the tree
are expanded based on the matches. The maintenance tool would visibly
hang at this point. Measuring with callgrind indicated that the biggest
relative cost was at automatically resizing the header sections, which
could be done hundreds of times, which is unnesessary because we only
need to update the view once all necessary indexes are expanded.
Fix by setting the resize modes of the sections temporarily to fixed
size, and restore the original modes after the tree view is updated.
Task-number: QTIFW-2886
Change-Id: I17547344494818de9e321b3501cf6c3bc550c51e
Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
Reviewed-by: Katja Marttila <katja.marttila@qt.io>
Diffstat (limited to 'src/libs/installer/packagemanagercore_p.cpp')
0 files changed, 0 insertions, 0 deletions