summaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-06-08 08:47:22 +0200
committerKent Hansen <khansen@trolltech.com>2009-06-08 08:47:22 +0200
commit779bd72aaad2cd8cd5af23214cd812bf2e5528a7 (patch)
tree288ea01d1f5b291dd4b620575b397d266e34470f /src/tools
parent508c9cd681244a5ad566c12733aa70f5bd522b57 (diff)
make moc-generated code compile again
Needed due to commit 4acabb3abd0ff109b9abeedb6832f5b1c3e0cc4e
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/moc/moc.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/moc/moc.cpp b/src/tools/moc/moc.cpp
index 8ca2823433..4629ac5d85 100644
--- a/src/tools/moc/moc.cpp
+++ b/src/tools/moc/moc.cpp
@@ -767,6 +767,8 @@ void Moc::generate(FILE *out)
if (classList.size() && classList.first().classname == "Qt")
fprintf(out, "#include <QtCore/qobject.h>\n");
+ fprintf(out, "#include <QtCore/qmetatype.h>\n");
+
fprintf(out, "#if !defined(Q_MOC_OUTPUT_REVISION)\n"
"#error \"The header file '%s' doesn't include <QObject>.\"\n", (const char *)fn);
fprintf(out, "#elif Q_MOC_OUTPUT_REVISION != %d\n", mocOutputRevision);