Strange problem with event filters

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Strange problem with event filters

Michael G. Hansen
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
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: Strange problem with event filters

Gilles Caulier-4
In this sidebar, there is an event filter in Caption and tags :

http://lxr.kde.org/source/extragear/graphics/digikam/libs/imageproperties/imagedescedittab.cpp#662

... to handle keyboard.

Do you have any debug messages from Qt on the console?

Gilles

2011/1/27 Michael G. Hansen <[hidden email]>:

> 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
> _______________________________________________
> Digikam-devel mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-devel
>
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel