Debugger[CDB]: Do not evaluate watch expressions at all.

setError() on them instead (should there be any from
a session mixup). Give the session engine watcher
capabilities and ensure 'Remove watch item' is enabled
for the session engine by checking the debugger state.

Reviewed-by: hjk
This commit is contained in:
Friedemann Kleint
2010-10-11 12:59:49 +02:00
parent 6d0f0c7cd3
commit 82f80d5403
5 changed files with 16 additions and 2 deletions

View File

@@ -704,6 +704,9 @@ QVariant WatchModel::data(const QModelIndex &idx, int role) const
case EngineActionsEnabledRole:
return engine()->debuggerActionsEnabled();
case EngineStateRole:
return QVariant(int(engine()->state()));
}
const WatchItem *item = watchItem(idx);