diff options
author | Martin Smith <msmith@trolltech.com> | 2009-05-22 12:59:26 (GMT) |
---|---|---|
committer | Martin Smith <msmith@trolltech.com> | 2009-05-22 12:59:26 (GMT) |
commit | 1ee8715fe0dfa784be987cc0cfb4519b2f20adb0 (patch) | |
tree | 21004fd611096d062eb11f0cb9f87dfbb69d257a /src/scripttools | |
parent | 751e0f1b70cb0c80e88f99e5137329d6f4b76562 (diff) | |
parent | 8b2a16bd7f434a159e34e93dbffc983927a0a143 (diff) | |
download | Qt-1ee8715fe0dfa784be987cc0cfb4519b2f20adb0.zip Qt-1ee8715fe0dfa784be987cc0cfb4519b2f20adb0.tar.gz Qt-1ee8715fe0dfa784be987cc0cfb4519b2f20adb0.tar.bz2 |
Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qt into 4.5
Diffstat (limited to 'src/scripttools')
-rw-r--r-- | src/scripttools/debugging/qscriptenginedebugger.cpp | 13 |
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 |