--- a/examples/script/qsdbg/main.cpp Tue Jan 26 12:42:25 2010 +0200
+++ b/examples/script/qsdbg/main.cpp Tue Feb 02 00:43:10 2010 +0200
@@ -39,14 +39,17 @@
**
****************************************************************************/
+#include <QtCore/QCoreApplication>
#include <QtScript>
#include "scriptdebugger.h"
int main(int argc, char **argv)
{
+ QCoreApplication app(argc, argv);
+
if (argc < 2) {
- fprintf(stderr, "*** you must specify a script file to evaluate (try example.qs)\n");
+ fprintf(stderr, "*** you must specify a script file to evaluate (try example.js)\n");
return(-1);
}