name every undo command

This commit is contained in:
itsmattkc
2023-03-12 00:49:03 -08:00
parent 019f095ee4
commit 2c2df99963
46 changed files with 172 additions and 122 deletions
+6 -1
View File
@@ -191,8 +191,10 @@ void NodeViewContext::SetCurvedEdges(bool e)
}
}
void NodeViewContext::DeleteSelected(NodeViewDeleteCommand *command)
int NodeViewContext::DeleteSelected(NodeViewDeleteCommand *command)
{
int count = 0;
// Delete any selected edges
foreach (NodeViewEdge *edge, edges_) {
if (edge->isSelected()) {
@@ -204,8 +206,11 @@ void NodeViewContext::DeleteSelected(NodeViewDeleteCommand *command)
foreach (NodeViewItem *node, item_map_) {
if (node->isSelected()) {
command->AddNode(node->GetNode(), context_);
count++;
}
}
return count;
}
void NodeViewContext::Select(const QVector<Node *> &nodes)