Skip to content

delegates: Fix thumbnail placeholder icon position

Ismael Asensio requested to merge work/iasensio/fix-thumbnail-placeholder into master

The thumbnail placeholder, shown when the item has no previews, assumed the thumbnail would cover the whole delegate, so when it's not the case, it can show in unwanted places.

To fix this, add a thumbnailArea property which allows the derived delegates to set it where the actual thumbnail is placed.

The previous item named thumbnailArea is renamed to contentArea to better reflect what it does and avoid confusion.

It is easier to test this on a category which don't usually have preview thumbnails, such as Kalzium molecules:

BEFORE AFTER
Tiles

knewstuff-before-tiles

knewstuff-after-tiles

Icons

(no change here)

knewstuff-before-icons

knewstuff-after-icons

Large Previews

knewstuff-before-big

knewstuff-after-big

Edited by Ismael Asensio

Merge request reports

Loading