From 76c882740b647f4fa45d57a760e6186aac2154f5 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Sun, 10 Jan 2010 13:03:53 +0000 Subject: [PATCH] ok, include the moc file everywhere it needs to be, with more ifdef uglies svn path=/trunk/KDE/kdebase/runtime/; revision=1072594 --- scriptengines/javascript/scriptenv.cpp | 2 ++ scriptengines/javascript/scriptenvui.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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"