debugger: provide a method to copy Locals&Watchers contents into a main editor.

Task-number: QTCREATORBUG-982
This commit is contained in:
hjk
2010-09-08 09:09:09 +02:00
parent 18d14b5367
commit 1d3606f4b9
4 changed files with 35 additions and 0 deletions

View File

@@ -383,6 +383,10 @@ void WatchWindow::contextMenuEvent(QContextMenuEvent *ev)
actClearCodeModelSnapshot->setEnabled(actionsEnabled
&& theDebuggerAction(UseCodeModel)->isChecked());
menu.addAction(actClearCodeModelSnapshot);
QAction *actShowInEditor
= new QAction(tr("Show View Contents in Editor"), &menu);
actShowInEditor->setEnabled(actionsEnabled);
menu.addAction(actShowInEditor);
menu.addSeparator();
menu.addAction(theDebuggerAction(UseToolTipsInLocalsView));
@@ -435,6 +439,8 @@ void WatchWindow::contextMenuEvent(QContextMenuEvent *ev)
setModelData(LocalsTypeFormatRole, -1, mi1);
} else if (act == clearIndividualFormatAction) {
setModelData(LocalsIndividualFormatRole, -1, mi1);
} else if (act == actShowInEditor) {
setModelData(RequestShowInEditorRole);
} else {
for (int i = 0; i != typeFormatActions.size(); ++i) {
if (act == typeFormatActions.at(i))