[Digikam-devel] Re: enum as parameter in QSignal not working?

Johannes Wienke jwienke at techfak.uni-bielefeld.de
Wed Oct 20 09:38:23 BST 2010


Hey

On 10/20/2010 10:35 AM, Gabriel Voicu wrote:
> I'm trying to do, in gpssearchview.cpp, something like:
> 
> connect(d->mapSearchWidget, SIGNAL(signalMouseModeChanged(KMap::MouseMode)),
>              this, SLOT(slotMouseMode Changed(KMap::MouseMode)));
> 
> and when I run digikam, in Konsole says:
> No such signal KMap::KMapWidget::signalMouseModeChanged(KMap::MouseMode) in
> ./gpssearchview.cpp
> 
> KMap::MouseMode is an enum that holds the mouse modes in libkmap:
> 
> enum MouseMode{
>     MouseModePan,
>     MouseModeSelection,
>     MouseModeZoom,
>     MouseModeFilter,
>     ...};

Did you try it with a const ref? If this does also not work you can of
course use int ant cast the enums, but that would be ugly.

Regards,
Johannes

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://mail.kde.org/pipermail/digikam-devel/attachments/20101020/5f187241/attachment.sig>


More information about the Digikam-devel mailing list