moc generating wrong code?

Andras Mantia amantia at kde.org
Sun May 16 16:41:44 BST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 16 May 2004 18:07, Waldo Bastian wrote:
> In kdewebdev/klinkstatus/src/ui/ I get a sessionwidgetbase.cpp
> with
>
> static const unsigned char const img0_sessionwidgetbase[] = {
>
> resulting in:
>
> ../../../klinkstatus/src/ui/sessionwidgetbase.cpp:30: error:
> duplicate `const'
>
> Any ideas?

Paulo (the author of that code) filed a bug to Qt and they said that
this is a problem in Qt 3.3.1 and it's fixed in 3.3.2, but he also
wasn't sure what do they refer to is a problem in designer, uic or moc.
For me it doesn't break, but I'm using Qt from qt-copy (3.3.2). You may
try to open and save in designer and see if it works for you or not.

Andras

PS: Here is the answer from Qt:
> Hi Paulo,
> 
> Since the problem has been fixed in Qt 3.3.2, you need to use this
> version to build. Feel free to get back to us if this does not solve
> your problem.
> 
> Best regards,
> Sigrid
> Trolltech AS, Waldemar Thranes gt. 98, N-0175 Oslo, Norway

- --
Quanta Plus developer - http://quanta.sourceforge.net
K Desktop Environment - http://www.kde.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAp4u4TQdfac6L/08RAmB6AJ40QAZOHvKcNw3e3b4QzTDImC7tbACgoTkx
FtNt3nIOYzS/DXApMlojgC8=
=iyZv
-----END PGP SIGNATURE-----




More information about the kde-core-devel mailing list