Op 9-2-2012 12:39, Stephen Kelly schreef:

> Can I merge QMetaTypeId and QMetaTypeId2?

I always thought they were split so that Qt could add new built-in metatypes without breaking user code.

Eg, if you merge them, any user code doing:

Q_DECLARE_METATYPE(QModelIndex)

will no longer compile until that line is removed (It is a built-in metatype now).


Not hindered by any knowledge of the internals of these classes:
Would it be possible to make such a statement a no-op then if the type is already registered?

André

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

Reply via email to