docs(thumbnailer): note that requested sizes are device pixels

main
reionwong 3 weeks ago
parent 2819b261d4
commit 68c29f2831

@ -86,7 +86,9 @@ QString ThumbnailCache::requestThumbnail(const QString &filePath, const QSize &r
}; };
QString thumbDir; QString thumbDir;
int wants = /*devicePixelRatio **/ cacheSize; // Qt already multiplies an image provider's requested size by the device
// pixel ratio, so requestedSize arrives in device pixels.
const int wants = cacheSize;
for (const auto &p : pools) { for (const auto &p : pools) {
if (p.minSize < wants) { if (p.minSize < wants) {
continue; continue;

Loading…
Cancel
Save