diff options
author | Jason Barron <jbarron@trolltech.com> | 2009-08-24 08:31:55 (GMT) |
---|---|---|
committer | Jason Barron <jbarron@trolltech.com> | 2009-08-24 08:31:55 (GMT) |
commit | c987e036538a53564345aa6bc4f84a33b0b02fca (patch) | |
tree | 900ee54fdea2b732a703bfd04286b5105312b9ac /examples/script/context2d | |
parent | f737db46ba81ce0b15cd7e7b2060863c9973b26c (diff) | |
download | Qt-c987e036538a53564345aa6bc4f84a33b0b02fca.zip Qt-c987e036538a53564345aa6bc4f84a33b0b02fca.tar.gz Qt-c987e036538a53564345aa6bc4f84a33b0b02fca.tar.bz2 |
Make context2d compile with QT_NO_SCRIPTTOOLS.
These two member variables should be ifdef'ed.
Reviewed-by: Kent Hansen
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)), |