On Thu, Aug 02, 2007 at 10:25:04AM +0200, Matthias Kretz wrote: > On Thursday 02 August 2007, Michael Olbrich wrote: > > I'm not sure if this is a bug or intentional, but the kde4 moc magic is > > missing some of my classes. Basically I have two QObject classes, one > > defined in the header file and the other in the corresponding source > > file. The created moc file only contains the stuff for the second class. > > Example attached. > > No problems when both classes are defined in the same file. > > Does it work if you add foo.h add > kde4_moc_headers(foo foo.h) > > Does it work if you add > #include "moc_foo.cpp" to foo.cpp
Either way works. In both cases moc_foo.cpp is generated and linked via foo_automoc.cpp and foo.cpp respectively. Thanks, michael
signature.asc
Description: Digital signature
_______________________________________________ Kde-buildsystem mailing list [email protected] https://mail.kde.org/mailman/listinfo/kde-buildsystem
