Generate includes for Qt containers used as auto-metatypes.
authorStephen Kelly <stephen.kelly@kdab.com>
Mon, 3 Sep 2012 10:55:38 +0000 (12:55 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 3 Sep 2012 18:05:04 +0000 (20:05 +0200)
commit5a1fa8860ca466bc109f1195e1e4b92c0c92018d
tree0a4c721a08ac849fe9b44575311642868b52b6a9
parent6efec23b100291dfea52a79626e2a577a49c10e5
Generate includes for Qt containers used as auto-metatypes.

Otherwise the containers might be forward declared in the moc file,
and when the moc file is compiled in a standalone translation unit,
the full definition of it would not be available. This results in
odd compile errors, so instead generate the includes if required.

Change-Id: Ie01c5a5d45314daad0b00dec03b3e1e18cdbae64
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Volker Krause <volker.krause@kdab.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
src/tools/moc/moc.cpp
tests/auto/tools/moc/forward-declared-param.h [new file with mode: 0644]
tests/auto/tools/moc/moc.pro