summaryrefslogtreecommitdiffstats
path: root/src/scripttools/debugging/qscriptdebuggercommand.cpp
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-06-12 15:05:27 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-06-12 15:06:08 (GMT)
commita25548dd9a6ad08961df56a97b6b5189d465f251 (patch)
tree986f1e0118f510c9ad4a71defab4c37080783c00 /src/scripttools/debugging/qscriptdebuggercommand.cpp
parent4d0cc0b9600f8530bb0e8712b4bb109d1810c4a7 (diff)
downloadQt-a25548dd9a6ad08961df56a97b6b5189d465f251.zip
Qt-a25548dd9a6ad08961df56a97b6b5189d465f251.tar.gz
Qt-a25548dd9a6ad08961df56a97b6b5189d465f251.tar.bz2
make debugger console's auto-completion asynchronous
Needed for remote debugging.
Diffstat (limited to 'src/scripttools/debugging/qscriptdebuggercommand.cpp')
-rw-r--r--src/scripttools/debugging/qscriptdebuggercommand.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/scripttools/debugging/qscriptdebuggercommand.cpp b/src/scripttools/debugging/qscriptdebuggercommand.cpp
index 3ceb0d5..fc9b96a 100644
--- a/src/scripttools/debugging/qscriptdebuggercommand.cpp
+++ b/src/scripttools/debugging/qscriptdebuggercommand.cpp
@@ -568,6 +568,15 @@ QScriptDebuggerCommand QScriptDebuggerCommand::getPropertyExpressionValue(
return cmd;
}
+QScriptDebuggerCommand QScriptDebuggerCommand::getCompletions(
+ int contextIndex, const QStringList &path)
+{
+ QScriptDebuggerCommand cmd(GetCompletions);
+ cmd.setContextIndex(contextIndex);
+ cmd.setAttribute(UserAttribute, path);
+ return cmd;
+}
+
QScriptDebuggerCommand QScriptDebuggerCommand::newScriptObjectSnapshotCommand()
{
QScriptDebuggerCommand cmd(NewScriptObjectSnapshot);