On Thursday, 9 de February de 2012 12.39.54, Stephen Kelly wrote:
> I always thought they were split so that Qt could add new built-in metatypes
> without breaking user code.

That's not why it was added.

> Eg, if you merge them, any user code doing:
>
> Q_DECLARE_METATYPE(QModelIndex)

Most types are not built-ins. They may be added by another library, like
QtDBus (that Q_DECLARE_METATYPEs a lot of types) and then there's no
protection.

--
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