Summary: | Dolphin re-layouts all items too often in folders with many items while previews and/or mime types are received. | ||
---|---|---|---|
Product: | [Applications] dolphin | Reporter: | Frank Reininghaus <frank78ac> |
Component: | view-engine: general | Assignee: | Dolphin Bug Assignee <dolphin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 2.2 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kde-baseapps/daf12b8eb379d7a74919f6ae9952fb3b51bd85af | Version Fixed In: | 4.10.1 |
Sentry Crash Report: |
Description
Frank Reininghaus
2013-02-17 10:30:21 UTC
Git commit daf12b8eb379d7a74919f6ae9952fb3b51bd85af by Frank Reininghaus. Committed on 17/02/2013 at 11:21. Pushed by freininghaus into branch 'KDE/4.10'. Prevent repeated re-layouting of all items while previews are generated There was some code in KStandardItemListView::itemSizeHintUpdateRequired already that was supposed to prevent an expensive re-layouting of all items when a preview is received. However, it didn't quite work as intended because also the "iconOverlays" role changed. The new approach is to only re-layout if text of a visible role changes, because this is the only way how the space needed by an item might change (see KStandardItemListWidgetInformant::itemSizeHint()). FIXED-IN: 4.10.1 REVIEW: 108984 M +8 -8 dolphin/src/kitemviews/kstandarditemlistview.cpp http://commits.kde.org/kde-baseapps/daf12b8eb379d7a74919f6ae9952fb3b51bd85af |