diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-07-02 10:36:36 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-07-02 10:36:36 (GMT) |
commit | ab4eea9aa8d2156d12c85317a78de266cf5f8145 (patch) | |
tree | 5e0c1e3276ed30ceb3b4f4a7c1caa36c8218dfcd /examples | |
parent | 55f4665a8d9bd7ccc3f59b76878f5adddd4e6d69 (diff) | |
download | Qt-ab4eea9aa8d2156d12c85317a78de266cf5f8145.zip Qt-ab4eea9aa8d2156d12c85317a78de266cf5f8145.tar.gz Qt-ab4eea9aa8d2156d12c85317a78de266cf5f8145.tar.bz2 |
make the qtscript calculator and tetrix examples run
Disable the debugger for now, since it's not implemented.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/script/calculator/main.cpp | 4 | ||||
-rw-r--r-- | examples/script/qstetrix/main.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/script/calculator/main.cpp b/examples/script/calculator/main.cpp index 75c93a0..ea03b58 100644 --- a/examples/script/calculator/main.cpp +++ b/examples/script/calculator/main.cpp @@ -60,7 +60,7 @@ int main(int argc, char **argv) QScriptEngine engine; //! [0a] -#ifndef QT_NO_SCRIPTTOOLS +#if 0 && defined(QT_NO_SCRIPTTOOLS) QScriptEngineDebugger debugger; debugger.attachTo(&engine); QMainWindow *debugWindow = debugger.standardWindow(); @@ -89,7 +89,7 @@ int main(int argc, char **argv) QScriptValue calc = ctor.construct(QScriptValueList() << scriptUi); //! [2] -#ifndef QT_NO_SCRIPTTOOLS +#if 0 && defined(QT_NO_SCRIPTTOOLS) QLineEdit *display = qFindChild<QLineEdit*>(ui, "display"); QObject::connect(display, SIGNAL(returnPressed()), debugWindow, SLOT(show())); diff --git a/examples/script/qstetrix/main.cpp b/examples/script/qstetrix/main.cpp index c212d7c..d3ea412 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] -#ifndef QT_NO_SCRIPTTOOLS +#if 0 && 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"); -#ifndef QT_NO_SCRIPTTOOLS +#if 0 && defined(QT_NO_SCRIPTTOOLS) QObject::connect(debugButton, SIGNAL(clicked()), debugger.action(QScriptEngineDebugger::InterruptAction), SIGNAL(triggered())); |