diff --git a/scriptengines/javascript/scriptenv.cpp b/scriptengines/javascript/scriptenv.cpp index 8915f49a9..19deb31b8 100644 --- a/scriptengines/javascript/scriptenv.cpp +++ b/scriptengines/javascript/scriptenv.cpp @@ -295,4 +295,6 @@ QScriptValue ScriptEnv::print(QScriptContext *context, QScriptEngine *engine) return engine->undefinedValue(); } +#ifndef USEGUI #include "scriptenv.moc" +#endif diff --git a/scriptengines/javascript/scriptenvui.cpp b/scriptengines/javascript/scriptenvui.cpp index 7463b18c1..a404c55d8 100644 --- a/scriptengines/javascript/scriptenvui.cpp +++ b/scriptengines/javascript/scriptenvui.cpp @@ -18,4 +18,4 @@ #define USEGUI #include "scriptenv.cpp" - +#include "scriptenv.moc"