On Friday, 30 de December de 2011 14.55.55, Denis Dzyubenko wrote:
> In qt5 modules we have exactly the same problem as in namespaced-Qt
> itself. Hence my suggestion to solve it in the same way - I would like
> to be able to re-use that QT_BEGIN_MOC_NAMESPACE for qt5 modules, to
> be able to redefine it to use both Qt namespace and my modules'
> namespace.

I suggest you use your namespace at the end of your .cpp file and #include the
moc output. This improves the compilation time, makes better code and reduces
the need for weird changes in moc.

--
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to