Skip to content

applets/taskmanager: use TextMetrics directly to elide long recent items

Jin Liu requested to merge work/jinliu/fix-popup-menu-long-history-62 into Plasma/6.2

Currently the code uses a linear search to elide long recent items. This can take more than 10 seconds for apps like qBittorrent which can have recent URL items with 1000+ characters.

Change the code to use TextMetrics.elidedText directly without a linear search.

(cherry picked from commit 2a334405)

Merge request reports

Loading