Bug 460216

Summary: After hovering different image, Image preview panel (F11) continues to show the old preview until the new one is generated
Product: [Frameworks and Libraries] frameworks-kio Reporter: phd <phd>
Component: Open/save dialogsAssignee: KIO Bugs <kio-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: kdelibs-bugs-null, niccolo.venerandi
Priority: NOR    
Version First Reported In: 5.98.0   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description phd 2022-10-11 00:41:58 UTC
After hovering different image, Image preview panel (F11) continues to show the old preview until the new one is generated.

STEPS TO REPRODUCE
1. open Kate
2. select File -> Open (Ctrl+O)
3. show Image Preview panel (F11)
4. navigate to a directory containing many images
5. hover one image, wait until you see it's preview
6. hover another image

OBSERVED RESULT
Old preview from the previously hovered image is still being displayed until the preview for the newly hovered file is generated.
It is misleading for the user who doesn't know if the preview is that of a newly hovered file, or previously hovered file (because the new one is still being generated).

EXPECTED RESULT
When mouse leaves an item in the Open dialog's files view, the preview should be cleared, ideally replaced with KDE's busy indicator (rotating gear).

Image preview should also be cleared when mouse leaves the files view widget.
In the above situation, if there is a file *selected* and not just hovered, then the preview could display that selected image after the mouse leaves the file list area.

SOFTWARE/OS VERSIONS
Linux: Ubuntu 22.04
X.org: 1.21.1.3
KDE Plasma: 5.25.5
KDE Frameworks: 5.98.0
Qt: 5.15.3
Comment 1 veggero 2022-10-11 21:26:36 UTC
Can reproduce