[Kommander-devel] Re: Accessing a QAction in a Kommander Plugin

Kevin Krammer kevin.krammer at gmx.at
Mon Feb 25 14:50:47 EST 2008


On Sunday 24 February 2008, Eric Laffoon wrote:

> I had to add #include <kapplication.h> after which I get ironically exactly
> the same compile error I have in the past...
>
> ../../src/qtactionproxy.cpp: In member function 'bool
> QtActionProxy::actionIsOn(const QString&)':
> ../../src/qtactionproxy.cpp:160: error: expected unqualified-id before
> numeric constant
> ../../src/qtactionproxy.cpp:160: error: expected ';' before numeric
> constant ../../src/qtactionproxy.cpp:160: error: '1' cannot be used as a
> function

Hmm, strange.

Can you attach the file in its current state?

And probably the full error log, also as attachment, just in case this is a 
follow up error of something happing earlier.

> This is what I just don't understand. childAction should be a QAction* so
> what does the expected unqualified-id mean? Where does the '1' come from
> and how is it being used as a function?
>
> I can read and understand your code. Am I missing an include? Am I creating
> conflicts with my includes?

Not very likely this would trigger different compiler warnings (conflicting 
declarations, double declarations, etc)

Cheers,
Kevin

-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mail01.fortunecookiestudios.com/pipermail/kommander-devel/attachments/20080225/7ad68b40/attachment.pgp


More information about the Kommander-devel mailing list