[Digikam-devel] [Bug 199975] Issues in Album view on Windows

Marcel Wiesweg marcel.wiesweg at gmx.de
Mon Nov 30 19:04:23 GMT 2009


https://bugs.kde.org/show_bug.cgi?id=199975





--- Comment #5 from Marcel Wiesweg <marcel wiesweg gmx de>  2009-11-30 20:04:21 ---
The code drawing this border is located in imagedelegate.cpp, line 378:
if (option.state & QStyle::State_MouseOver) { ...

There is also a similar code block above (371) which is probably never used.
I see these possibilities: Either the item is not redrawn when the mouse
leaves, or the 371-code block is used, why ever. Or the MouseOver flag is
erroneously set.
It's a bit difficult to debug because the method is called for every
QModelIndex and for each redraw, so quite often. You could use debug messages
restricted to when a certain model index (e.g. row=0) is painted.
There is ImageDelegate::mouseMoved to get info about where the mouse is.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Digikam-devel mailing list