[Digikam-devel] Strange problem with event filters
Michael G. Hansen
mike at mghansen.de
Thu Jan 27 16:43:51 GMT 2011
Hi,
in libkmap, I use event filters to catch clicks onto items on the Marble
map. This works fine, except for the image properties sidebar in digikam
and in the image editor - here the event filters do not work every time
I launch digikam, most of the time they don't. When they do not work, I
can not catch mouse press events, and Marble handles the mouse click.
Any ideas? Is there any special event filtering in other widgets going
on in these two areas? It looks like the behavior depends on some order
of initialization.
This bug is not actually new, because I also observe this under digikam
1.2 (both 1.2 and trunk are under KDE 4.5.3 from debian).
To see the bug, set the mouse mode to "Zoom into a group". While this
works in the "Map searches", it does not work in the image properties.
The code for the event filtering is in the eventFilters function here:
http://websvn.kde.org/branches/extragear/graphics/digikam/extra/libkmap/libkmap/backend-marble.cpp?view=markup
Michael
More information about the Digikam-devel
mailing list