Introduce Q_DECLARE_OPAQUE_POINTER
authorJoão Abecasis <joao.abecasis@nokia.com>
Tue, 31 Jan 2012 16:35:00 +0000 (17:35 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 8 Feb 2012 23:32:41 +0000 (00:32 +0100)
commit0c978407088fdbd15dc185aef7506087a88e1443
treea8b2e21e5cd52fa615fce085acbe4439782bf365
parent14577726ee97c8d6dd176e0039ab2da0193c7bb1
Introduce Q_DECLARE_OPAQUE_POINTER

To hide the IsPointerToTypeDerivedFromQObject monstruosity :-)

Documentation for Q_DECLARE_METATYPE and qRegisterMetaType was updated
to mention requirements on registered types and how they can be
circumvented for pointer types with the new macro.

Change-Id: If83b037a8e2f28761eb903525e87008107298801
Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
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/sqlite2/qsql_sqlite2.cpp
src/sql/drivers/tds/qsql_tds.cpp
tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp