From c987e036538a53564345aa6bc4f84a33b0b02fca Mon Sep 17 00:00:00 2001 From: Jason Barron Date: Mon, 24 Aug 2009 10:31:55 +0200 Subject: Make context2d compile with QT_NO_SCRIPTTOOLS. These two member variables should be ifdef'ed. Reviewed-by: Kent Hansen --- examples/script/context2d/window.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'examples/script') 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)), -- cgit v1.2.3