Bug 226765 - Panning with arrow keys in preview mode is slow
Summary: Panning with arrow keys in preview mode is slow
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Preview-Image (show other bugs)
Version: 1.2.0
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-14 09:27 UTC by Julien Narboux
Modified: 2017-12-16 13:42 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 2.0.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julien Narboux 2010-02-14 09:27:47 UTC
Version:           1.2.0svn (using KDE 4.3.5)
OS:                Linux

When panning using arrow keys in preview mode in DigiKam the label "Reduced Size Preview" is flickering and the whole process is very slow compared to mouse wheel scrolling.

Julien
Comment 1 caulier.gilles 2010-02-14 11:47:22 UTC
Yes, it's slow because of these line :

http://lxr.kde.org/source/extragear/graphics/digikam/libs/widgets/common/previewwidget.cpp#839

...which call repaint() on viewport. I don't have found a good solution.

In fact the problem is that Qt4 catch keyboard _release_ event in case of key are not yet released ! I think to use a timer here to prevent this call if  keyReleaseEvent is called too shortly. 

Do you understand the problem ?

Gilles
Comment 2 Marcel Wiesweg 2010-02-14 14:41:07 UTC
So the problem is that many events are sent in a short time?
1) What's the indication to use repaint()? Is update() not possible?
2) Yes, use a timer.
Comment 3 Andi Clemens 2011-07-24 12:47:32 UTC
Is this issue fixed? I can not see any slowdown or flickering...
Comment 4 Marcel Wiesweg 2011-07-24 13:23:10 UTC
Code is completely rewritten since then, so I guess we can close.