diff options
Diffstat (limited to 'examples/script/context2d')
-rw-r--r-- | examples/script/context2d/window.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/script/context2d/window.cpp b/examples/script/context2d/window.cpp index d70a4f1..ede36cb 100644 --- a/examples/script/context2d/window.cpp +++ b/examples/script/context2d/window.cpp @@ -66,8 +66,10 @@ static QString scriptsDir() //! [0] Window::Window(QWidget *parent) - : QWidget(parent), - m_debugger(0), m_debugWindow(0) + : QWidget(parent) +#ifndef QT_NO_SCRIPTTOOLS + , m_debugger(0), m_debugWindow(0) +#endif { m_env = new Environment(this); QObject::connect(m_env, SIGNAL(scriptError(QScriptValue)), |