Skip to content

Commit

Permalink
Add **Edit Value** action in context menu in main tree view.
Browse files Browse the repository at this point in the history
Equivalent to pressing `F2` while focusing a cell in the view, or
double-clicking the value cell.
  • Loading branch information
cristian64 committed Mar 7, 2024
1 parent b2b2074 commit 5732e06
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/GUI/MemWatcher/MemWatchWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,10 @@ void MemWatchWidget::onMemWatchContextMenuRequested(const QPoint& pos)
connect(unlockSelection, &QAction::triggered, this, [=] { onLockSelection(false); });
contextMenu->addAction(unlockSelection);
contextMenu->addSeparator();
QAction* const editValue{new QAction(tr("Edit Value"), this)};
connect(editValue, &QAction::triggered, this, [=]() { m_watchView->edit(index); });
contextMenu->addAction(editValue);
contextMenu->addSeparator();
}
}
else
Expand Down

0 comments on commit 5732e06

Please sign in to comment.