diff options
author | Christian Stenger <christian.stenger@qt.io> | 2018-09-24 14:41:51 +0200 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2018-09-24 13:37:12 +0000 |
commit | 1b751c2d47a19bf50d4c89a8b786a1b6362d5923 (patch) | |
tree | a849b2851b815ff07a218b1734969b1a6dfb86eb /src/plugins/debugger/qml | |
parent | c0378ee7e884eecc3e49f8e404565ac24bcb44ca (diff) |
Debugger: Allow watching complex expression for QML
Latest restructuring made the 'Add Expression Evaluator'
action to a no-op when not debugging.
Reflect this by disabling the action as long the user is
not debugging and allow complex expressions to be evaluated
for QML as well.
Fixes: QTCREATORBUG-19050
Change-Id: I2d6421a121e2169981b992a617f4d2b7264a8091
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/debugger/qml')
-rw-r--r-- | src/plugins/debugger/qml/qmlengine.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/debugger/qml/qmlengine.cpp b/src/plugins/debugger/qml/qmlengine.cpp index ac9209ae1a2..a53e070dea2 100644 --- a/src/plugins/debugger/qml/qmlengine.cpp +++ b/src/plugins/debugger/qml/qmlengine.cpp @@ -962,7 +962,8 @@ bool QmlEngine::hasCapability(unsigned cap) const { return cap & (AddWatcherCapability | AddWatcherWhileRunningCapability - | RunToLineCapability); + | RunToLineCapability + | WatchComplexExpressionsCapability); /*ReverseSteppingCapability | SnapshotCapability | AutoDerefPointersCapability | DisassemblerCapability | RegisterCapability | ShowMemoryCapability |