[Digikam-devel] enum as parameter in QSignal not working?
Gabriel Voicu
ping.gabi at gmail.com
Wed Oct 20 09:35:12 BST 2010
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,
...};
If I remove the parameter of the signal ( I put signalMouseModeChanged()
instead of signalMouseModeChanged(KMap::MouseMode)), all works and the
signal is emitted right. QSignal doesn't admit enum parameters in signals?
Gabriel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-devel/attachments/20101020/4ffea8dd/attachment.html>
More information about the Digikam-devel
mailing list