summaryrefslogtreecommitdiffstats
path: root/src/scripttools/debugging/qscriptdebuggerscriptedconsolecommand_p.h
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2010-02-04 15:08:47 (GMT)
committerKent Hansen <kent.hansen@nokia.com>2010-02-04 15:08:47 (GMT)
commit5762a988fbcd95c9c44e58993c25f5cd1d53f897 (patch)
tree893a42745136efa15fada66c96707616293f3ccc /src/scripttools/debugging/qscriptdebuggerscriptedconsolecommand_p.h
parent17ba81e9587f3202363b42f6662a2866506e9247 (diff)
downloadQt-5762a988fbcd95c9c44e58993c25f5cd1d53f897.zip
Qt-5762a988fbcd95c9c44e58993c25f5cd1d53f897.tar.gz
Qt-5762a988fbcd95c9c44e58993c25f5cd1d53f897.tar.bz2
Use a shared QScriptEngine for debugger console command scripts
A single engine was used for each script (i.e. command), which was just ridiculous. Use one engine with multiple global objects to isolate each script's state. Task-number: QTBUG-7227
Diffstat (limited to 'src/scripttools/debugging/qscriptdebuggerscriptedconsolecommand_p.h')
-rw-r--r--src/scripttools/debugging/qscriptdebuggerscriptedconsolecommand_p.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/scripttools/debugging/qscriptdebuggerscriptedconsolecommand_p.h b/src/scripttools/debugging/qscriptdebuggerscriptedconsolecommand_p.h
index 1536de2..2b2b3f8 100644
--- a/src/scripttools/debugging/qscriptdebuggerscriptedconsolecommand_p.h
+++ b/src/scripttools/debugging/qscriptdebuggerscriptedconsolecommand_p.h
@@ -57,6 +57,7 @@
QT_BEGIN_NAMESPACE
+class QScriptEngine;
class QScriptValue;
class QScriptDebuggerScriptedConsoleCommandPrivate;
@@ -72,6 +73,7 @@ protected:
const QStringList &seeAlso,
const QStringList &argumentTypes,
const QStringList &subCommands,
+ const QScriptValue &globalObject,
const QScriptValue &execFunction,
const QScriptValue &responseFunction);
public:
@@ -79,7 +81,7 @@ public:
static QScriptDebuggerScriptedConsoleCommand *parse(
const QString &program, const QString &fileName,
- QScriptMessageHandlerInterface *messageHandler);
+ QScriptEngine *engine, QScriptMessageHandlerInterface *messageHandler);
QString name() const;
QString group() const;