Fix source incompatibility for QVariant{Map, Hash, List}
authorJędrzej Nowacki <jedrzej.nowacki@nokia.com>
Fri, 11 Nov 2011 12:03:15 +0000 (13:03 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 14 Nov 2011 17:41:17 +0000 (18:41 +0100)
Change 7f35d5849e7233efac16c12271c58a049923b1c0 (Refactor QMetaType
types.) introduced a source incompatibility by moving typedefs for
QVariantHash, QVariantList and QVariantMap from qvariant.h file to
qmetatype.h.

The main issue here is that syncqt script is not able to distinguish
between a forward declared typedef and definition of a typedef as they
look same in source code. So generated header files for the typedefs
were pointing wrongly to qmetatype.h which didn't have full definition
of QVariant.

Change-Id: I0268c666efd0f91d76af0ff91fb30525e3dd6223
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Reviewed-by: Kevin Simons <kevin.simons@nokia.com>
sync.profile

index 7700a9f..221086a 100644 (file)
     "QtXml" => "$basedir/src/modules/qt_xml.pri",
     "QtPlatformSupport" => "$basedir/src/modules/qt_platformsupport.pri",
 );
+%explicitheaders = (
+    "QtCore" => {
+        "QVariantHash" => "qvariant.h",
+        "QVariantList" => "qvariant.h",
+        "QVariantMap" => "qvariant.h",
+    }
+);
 
 @ignore_for_master_contents = ( "qt.h", "qpaintdevicedefs.h" );
 @ignore_for_include_check = ( "qatomic.h" );