[PATCH] Avoid unnecessary sequencing jobs in PreviewGenerator
authorAkseli Lahtinen <akselmo@akselmo.dev>
Tue, 13 May 2025 10:01:07 +0000 (13:01 +0300)
committerAurélien COUDERC <coucouf@debian.org>
Sun, 8 Jun 2025 12:42:29 +0000 (14:42 +0200)
commit115c76e23f6c4ec0c1413b8ea9bf537a7879bbc6
tree87a9e4879fb53109a8b129cdb72a43fe84e4d65e
parentfeba3c5652722ee319d936966e0d16d553b64819
[PATCH] Avoid unnecessary sequencing jobs in PreviewGenerator

Currently we keep constantly asking if the current item has sequences
support or not.

By sequences we mean things like hovering mouse over a folder thumbnail
and it goes through the files in it.

This MR will always run for the first sequence (the initial thumbnail)
but for the rest, then toggles a flag for the node with
Qt::DecorationPropertyRole. If the propertyrole is false, it skips any
further updates to avoid any unnecessary previewjob runs.

Gbp-Pq: Name upstream_c747fa0f_Avoid-unnecessary-sequencing-jobs-in-PreviewGenerator.patch
src/filewidgets/kfilepreviewgenerator.cpp
src/gui/previewjob.cpp
src/widgets/delegateanimationhandler.cpp
src/widgets/kdirmodel.cpp
src/widgets/kdirmodel.h