From f46d99ceecc667c68a0170d92e4d12cfc8db3c54 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Thu, 5 Aug 2010 04:42:39 +0000 Subject: [PATCH] bring back the old hack svn path=/trunk/KDE/kdebase/runtime/; revision=1159334 --- scriptengines/javascript/scriptenv.cpp | 3 ++- scriptengines/javascript/scriptenvui.cpp | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/scriptengines/javascript/scriptenv.cpp b/scriptengines/javascript/scriptenv.cpp index cfc14acd9..c9c97bc6f 100644 --- a/scriptengines/javascript/scriptenv.cpp +++ b/scriptengines/javascript/scriptenv.cpp @@ -504,6 +504,7 @@ void ScriptEnv::removeEventListener(const QString &event, const QScriptValue &fu } } +#ifndef USEGUI #include "scriptenv.moc" #include "javascriptaddonpackagestructure.moc" - +#endif diff --git a/scriptengines/javascript/scriptenvui.cpp b/scriptengines/javascript/scriptenvui.cpp index 411d14381..4edfb5642 100644 --- a/scriptengines/javascript/scriptenvui.cpp +++ b/scriptengines/javascript/scriptenvui.cpp @@ -18,3 +18,6 @@ #define USEGUI #include "scriptenv.cpp" +#include "scriptenv.moc" +#include "javascriptaddonpackagestructure.moc" +