summaryrefslogtreecommitdiffstats
path: root/src/scripttools
diff options
context:
space:
mode:
authorMarkus Goetz <Markus.Goetz@nokia.com>2009-05-22 11:20:10 (GMT)
committerMarkus Goetz <Markus.Goetz@nokia.com>2009-05-22 12:40:07 (GMT)
commit8b2a16bd7f434a159e34e93dbffc983927a0a143 (patch)
tree366d7fe340ceaa512b292f25a23d4496ac903d8f /src/scripttools
parenta0396c8c68aca446e68434e516bd46d749093b0f (diff)
downloadQt-8b2a16bd7f434a159e34e93dbffc983927a0a143.zip
Qt-8b2a16bd7f434a159e34e93dbffc983927a0a143.tar.gz
Qt-8b2a16bd7f434a159e34e93dbffc983927a0a143.tar.bz2
Fixed compilation with -qtnamespace
Task-number: 254333 Reviewed-by: Andy Shaw <qt-info@nokia.com>
Diffstat (limited to 'src/scripttools')
-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 e35bd1d..0f8b600 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