Store the is-a QObject fact with the metatype declaration.
authorStephen Kelly <stephen.kelly@kdab.com>
Fri, 30 Dec 2011 11:00:09 +0000 (12:00 +0100)
committerQt by Nokia <qt-info@nokia.com>
Tue, 24 Jan 2012 14:27:25 +0000 (15:27 +0100)
commit4b8ceb41aed352f10d36db5284453f425dbc5f3f
tree6362bc3353107a7d35b7bb1cefb7f1751fe473fe
parent6efefb3fe5c7c392bc4857d979dee51042a4f043
Store the is-a QObject fact with the metatype declaration.

This is a source incompatible change for Q_DECLARE_METATYPE(T*),
which now requires T to be fully defined.

The consequences of this are:
 * Forward declared types can no longer be declared as a metatype.
     (though this is a very uncommon thing to do).

There is a trivial workaround where necessary.

Change-Id: Id74c40088b8c0b466fcd7c55abd616f69acc82c8
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
dist/changes-5.0.0
src/corelib/io/qtextstream.h
src/corelib/kernel/qmetatype.cpp
src/corelib/kernel/qmetatype.h
src/sql/drivers/psql/qsql_psql.cpp
src/sql/drivers/sqlite/qsql_sqlite.cpp
src/sql/drivers/tds/qsql_tds.cpp
tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp
tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp
tests/auto/other/exceptionsafety_objects/tst_exceptionsafety_objects.cpp
tests/benchmarks/corelib/tools/qstring/main.cpp