summaryrefslogtreecommitdiffstats
path: root/examples/script/context2d/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/script/context2d/window.cpp')
-rw-r--r--examples/script/context2d/window.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/script/context2d/window.cpp b/examples/script/context2d/window.cpp
index d70a4f1ed6..ede36cb6e3 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)),