summaryrefslogtreecommitdiffstats
path: root/examples/script/qstetrix/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/script/qstetrix/main.cpp')
-rw-r--r--examples/script/qstetrix/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/script/qstetrix/main.cpp b/examples/script/qstetrix/main.cpp
index d3ea412..52d3690 100644
--- a/examples/script/qstetrix/main.cpp
+++ b/examples/script/qstetrix/main.cpp
@@ -96,7 +96,7 @@ int main(int argc, char *argv[])
engine.globalObject().setProperty("Qt", Qt);
//! [1]
-#if 0 && defined(QT_NO_SCRIPTTOOLS)
+#if !defined(QT_NO_SCRIPTTOOLS)
QScriptEngineDebugger debugger;
debugger.attachTo(&engine);
QMainWindow *debugWindow = debugger.standardWindow();
@@ -122,7 +122,7 @@ int main(int argc, char *argv[])
//! [3]
QPushButton *debugButton = qFindChild<QPushButton*>(ui, "debugButton");
-#if 0 && defined(QT_NO_SCRIPTTOOLS)
+#if !defined(QT_NO_SCRIPTTOOLS)
QObject::connect(debugButton, SIGNAL(clicked()),
debugger.action(QScriptEngineDebugger::InterruptAction),
SIGNAL(triggered()));