Debugger: Disable "Select Widget to Add into Expression Evaluator"

Doesn't work anywhere right now.

Change-Id: I094f0591a8f33a3d07065089ca4f70e4a2b6f145
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2016-11-23 15:28:35 +01:00
parent 25745f4330
commit 89262f64a9

View File

@@ -1625,9 +1625,10 @@ bool WatchModel::contextMenuEvent(const ItemViewEvent &ev)
canRemoveWatches && !m_handler->watchedExpressions().isEmpty(),
[this] { clearWatches(); });
addAction(menu, tr("Select Widget to Add into Expression Evaluator"),
canHandleWatches && canInsertWatches && m_engine->hasCapability(WatchWidgetsCapability),
[this, ev] { ev.view()->grabMouse(Qt::CrossCursor); m_grabbing = true; });
// FIXME:
// addAction(menu, tr("Select Widget to Add into Expression Evaluator"),
// canHandleWatches && canInsertWatches && m_engine->hasCapability(WatchWidgetsCapability),
// [this, ev] { ev.view()->grabMouse(Qt::CrossCursor); m_grabbing = true; });
menu->addSeparator();
menu->addMenu(createFormatMenu(item));