Skip to content

Commit

Permalink
Merge pull request #108 from cristian64/edit_value_context_menu
Browse files Browse the repository at this point in the history
Add **Edit Value** action in context menu in main tree view.
  • Loading branch information
dreamsyntax authored Mar 7, 2024
2 parents 0dea3f5 + 5732e06 commit 3447ca0
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 3447ca0

Please sign in to comment.