forked from qt-creator/qt-creator
Debugger: Remove 'Change Global Display Formats...'
Remove 'Change Global Display Formats...' from the Locals & Expressions context menu. The dialog only works right now if one is currently debugging, changes are not stored across runs ... Change-Id: I7d16a7f8eaa9990e5fe1d7148022aa3db2c0fd05 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -765,11 +765,11 @@ void WatchTreeView::contextMenuEvent(QContextMenuEvent *ev)
|
|||||||
QAction *actInsertNewWatchItem =
|
QAction *actInsertNewWatchItem =
|
||||||
menu.addAction(tr("Insert New Expression Evaluator"));
|
menu.addAction(tr("Insert New Expression Evaluator"));
|
||||||
actInsertNewWatchItem->setEnabled(canHandleWatches && canInsertWatches);
|
actInsertNewWatchItem->setEnabled(canHandleWatches && canInsertWatches);
|
||||||
QAction *actSelectWidgetToWatch = menu.addAction(tr("Select Widget to Add into Expression Evaluator"));
|
QAction *actSelectWidgetToWatch =
|
||||||
|
menu.addAction(tr("Select Widget to Add into Expression Evaluator"));
|
||||||
actSelectWidgetToWatch->setEnabled(canHandleWatches && canInsertWatches
|
actSelectWidgetToWatch->setEnabled(canHandleWatches && canInsertWatches
|
||||||
&& engine->hasCapability(WatchWidgetsCapability));
|
&& engine->hasCapability(WatchWidgetsCapability));
|
||||||
QAction *actEditTypeFormats = menu.addAction(tr("Change Global Display Formats..."));
|
|
||||||
actEditTypeFormats->setEnabled(true);
|
|
||||||
menu.addSeparator();
|
menu.addSeparator();
|
||||||
|
|
||||||
QAction *actWatchExpression = new QAction(addWatchActionText(exp), &menu);
|
QAction *actWatchExpression = new QAction(addWatchActionText(exp), &menu);
|
||||||
@@ -858,7 +858,6 @@ void WatchTreeView::contextMenuEvent(QContextMenuEvent *ev)
|
|||||||
|
|
||||||
menu.addAction(actInsertNewWatchItem);
|
menu.addAction(actInsertNewWatchItem);
|
||||||
menu.addAction(actSelectWidgetToWatch);
|
menu.addAction(actSelectWidgetToWatch);
|
||||||
menu.addAction(actEditTypeFormats);
|
|
||||||
menu.addMenu(&formatMenu);
|
menu.addMenu(&formatMenu);
|
||||||
menu.addMenu(&memoryMenu);
|
menu.addMenu(&memoryMenu);
|
||||||
menu.addMenu(&breakpointMenu);
|
menu.addMenu(&breakpointMenu);
|
||||||
@@ -927,8 +926,6 @@ void WatchTreeView::contextMenuEvent(QContextMenuEvent *ev)
|
|||||||
handler->removeData(p.data(LocalsINameRole).toByteArray());
|
handler->removeData(p.data(LocalsINameRole).toByteArray());
|
||||||
} else if (act == actCopy) {
|
} else if (act == actCopy) {
|
||||||
copyToClipboard(DebuggerToolTipWidget::treeModelClipboardContents(model()));
|
copyToClipboard(DebuggerToolTipWidget::treeModelClipboardContents(model()));
|
||||||
} else if (act == actEditTypeFormats) {
|
|
||||||
handler->editTypeFormats(true, mi0.data(LocalsINameRole).toByteArray());
|
|
||||||
} else if (act == actCopyValue) {
|
} else if (act == actCopyValue) {
|
||||||
copyToClipboard(mi1.data().toString());
|
copyToClipboard(mi1.data().toString());
|
||||||
} else if (act == actRemoveWatches) {
|
} else if (act == actRemoveWatches) {
|
||||||
|
|||||||
Reference in New Issue
Block a user