diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-06-08 06:47:22 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-06-08 06:47:22 (GMT) |
commit | 779bd72aaad2cd8cd5af23214cd812bf2e5528a7 (patch) | |
tree | 288ea01d1f5b291dd4b620575b397d266e34470f /src/tools | |
parent | 508c9cd681244a5ad566c12733aa70f5bd522b57 (diff) | |
download | Qt-779bd72aaad2cd8cd5af23214cd812bf2e5528a7.zip Qt-779bd72aaad2cd8cd5af23214cd812bf2e5528a7.tar.gz Qt-779bd72aaad2cd8cd5af23214cd812bf2e5528a7.tar.bz2 |
make moc-generated code compile again
Needed due to commit 4acabb3abd0ff109b9abeedb6832f5b1c3e0cc4e
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/moc/moc.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/moc/moc.cpp b/src/tools/moc/moc.cpp index 8ca2823..4629ac5 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); |