On Tue, 2007-10-16 at 22:44 +0200, Olivier Tarnus wrote:
>
> Hi Nathan,
>
Hi there Olivier,
> Seeing all the activity on kmchart in the recent times, I decided to
> try it.
>
> It built perfectly on gentoo linux x86_64 with qt-4.3.1, but i get
> errors at runtime and it seems that widget actions are not caught,
> see:
> -- snip --
> tom@darkstar ~/dev/kmchart/src $ kmchart
> Object::connect: No such signal QAction::activated()
> Object::connect: (sender name: 'fileNewChartAction')
> Object::connect: (receiver name: 'KmChart')
Ah, I see the problem - we're using the activated() signal, which is
only supported in QT4 if QT3_SUPPORT is defined in the headers; from
qaction.h...
Q_SIGNALS:
void changed();
void triggered(bool checked = false);
void hovered();
void toggled(bool);
#ifdef QT3_SUPPORT
QT_MOC_COMPAT void activated(int = 0);
#endif
Looks like "triggered() is the prefered way to do this on QT4, I'll
switch over to that.
> After that nothing works, ie: no action on the gui will produce any
> effect, even the quit menu item.
Yeah, thats kinda what I'd expect if that signal wasn't hooked up.
> Perhaps not the best place to talk about that, but i've not been able
> to
> find any website or list dedicated to kmchart.
This is the right place. I'll commit that fix later this morning, and
CC you when it goes in - thanks for reporting the problem.
cheers.
--
Nathan
|