summaryrefslogtreecommitdiffstats
path: root/src/scripttools/debugging/qscriptenginedebugger.cpp
diff options
context:
space:
mode:
authorMarkus Goetz <Markus.Goetz@nokia.com>2009-05-22 13:20:10 +0200
committerMarkus Goetz <Markus.Goetz@nokia.com>2009-05-22 14:40:07 +0200
commit8b2a16bd7f434a159e34e93dbffc983927a0a143 (patch)
tree366d7fe340ceaa512b292f25a23d4496ac903d8f /src/scripttools/debugging/qscriptenginedebugger.cpp
parenta0396c8c68aca446e68434e516bd46d749093b0f (diff)
Fixed compilation with -qtnamespace
Task-number: 254333 Reviewed-by: Andy Shaw <qt-info@nokia.com>
Diffstat (limited to 'src/scripttools/debugging/qscriptenginedebugger.cpp')
-rw-r--r--src/scripttools/debugging/qscriptenginedebugger.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/scripttools/debugging/qscriptenginedebugger.cpp b/src/scripttools/debugging/qscriptenginedebugger.cpp
index e35bd1de3e..0f8b600943 100644
--- a/src/scripttools/debugging/qscriptenginedebugger.cpp
+++ b/src/scripttools/debugging/qscriptenginedebugger.cpp
@@ -63,16 +63,23 @@
#include <QtGui/qtoolbar.h>
#include <QtGui/qboxlayout.h>
+// this has to be outside the namespace
+static void initScriptEngineDebuggerResources()
+{
+ Q_INIT_RESOURCE(scripttools_debugging);
+}
+
+QT_BEGIN_NAMESPACE
+
class QtScriptDebuggerResourceInitializer
{
public:
QtScriptDebuggerResourceInitializer() {
- Q_INIT_RESOURCE(scripttools_debugging);
+ // call outside-the-namespace function
+ initScriptEngineDebuggerResources();
}
};
-QT_BEGIN_NAMESPACE
-
/*!
\since 4.5
\class QScriptEngineDebugger