diff options
author | hjk <qtc-committer@nokia.com> | 2009-06-17 16:00:03 +0200 |
---|---|---|
committer | hjk <qtc-committer@nokia.com> | 2009-06-17 16:00:04 +0200 |
commit | 609f4a437b746671f30fd091662e125c56d54979 (patch) | |
tree | 4ea9ad9fe1e0e9ef2be3f749627f85537390333c /src/plugins/debugger/script/scriptengine.cpp | |
parent | 019fead33887773040b041a8b0d4ed7304d914ed (diff) | |
download | qt-creator-609f4a437b746671f30fd091662e125c56d54979.tar.gz |
debugger: Rework watch model.
It's now properly using canFetchMore/fetchMore. cdb is not yet ported.
Diffstat (limited to 'src/plugins/debugger/script/scriptengine.cpp')
-rw-r--r-- | src/plugins/debugger/script/scriptengine.cpp | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/plugins/debugger/script/scriptengine.cpp b/src/plugins/debugger/script/scriptengine.cpp index 8517cd7c34..c8e35886fc 100644 --- a/src/plugins/debugger/script/scriptengine.cpp +++ b/src/plugins/debugger/script/scriptengine.cpp @@ -572,7 +572,7 @@ void ScriptEngine::maybeBreakNow(bool byFunction) void ScriptEngine::updateLocals() { QScriptContext *context = m_scriptEngine->currentContext(); - qq->watchHandler()->reinitializeWatchers(); + qq->watchHandler()->beginCycle(); //SDEBUG("UPDATE LOCALS"); // @@ -605,7 +605,6 @@ void ScriptEngine::updateLocals() data.name = "local"; data.scriptValue = context->activationObject(); qq->watchHandler()->insertData(data); - updateWatchModel(); // FIXME: Use an extra thread. This here is evil m_stopped = true; @@ -616,16 +615,10 @@ void ScriptEngine::updateLocals() //SDEBUG("RUNNING AGAIN"); } -void ScriptEngine::updateWatchModel() +void ScriptEngine::updateWatchData(const WatchData &data) { - while (true) { - QList<WatchData> list = qq->watchHandler()->takeCurrentIncompletes(); - if (list.isEmpty()) - break; - foreach (const WatchData &data, list) - updateSubItem(data); - } - qq->watchHandler()->rebuildModel(); + updateSubItem(data); + //qq->watchHandler()->rebuildModel(); q->showStatusMessage(tr("Stopped."), 5000); } |