[Uml-devel] u2 gui design

Carsten Pfeiffer carpdjih at mailbox.tu-berlin.de
Thu Apr 24 08:42:08 UTC 2003


-----BEGIN PGP SIGNED MESSAGE-----

On Thursday 24 April 2003 17:27, Andrew Sutton wrote:

> just a thought. i've seen people #include the .moc.cpp file inside the .cpp
> file. is that supposed to happen? is it required? it seems that it would
> certainly force compilation and linkage. that might not be such a bad idea
> :)

The output generated by the moc are actually methods declared in your class' 
header file (through the Q_OBJECT macro and the signals declarations), so 
having their implementations in the class file is just fine.

There is a script includemocs in kdesdk/scripts which automatically adds 
#include "foo.moc" to the end of foo.cpp.

Cheers
Carsten Pfeiffer
-----BEGIN PGP SIGNATURE-----

iQEVAwUBPqgFWqWgYMJuwmZtAQH3CAf8DsKhF+i9b4w5TwRW6jbA2pZk16/PKVy0
y1DRWQdrqoK5aA+yU5UaDnLcxLwz2NNl8xOUgZ3G7h4YmhKh2AMApBKWMdbeQt+E
KHSdGOJnsS7qSzVDxhWo9L+9+e5XNyaxvMXsF3VYLwD/LqwFXRzA25Yu6tbGM4Qf
C6b6gPJMZ7nEVKJQ6eACAovKoozzA6iag6B/uUnzQy6rEVjzapYMazInzXhPjtuc
DHlDzUmXM2a+nTLQl2VBhRBpRfBmZWNULXWbOc6fXPYEP65eJillyMt05cRkHbti
2DxCOFiN8e5MpkZsFU1vwEjPE2TJ+3xsUVmLGwCOqYwbtKMG5tU5kA==
=Muyr
-----END PGP SIGNATURE-----




More information about the umbrello-devel mailing list