MCPcopy Create free account
hub / github.com/IChooseYou/Reclass / renameNode

Method renameNode

src/controller.cpp:721–726  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

719}
720
721void RcxController::renameNode(int nodeIdx, const QString& newName) {
722 if (nodeIdx < 0 || nodeIdx >= m_doc->tree.nodes.size()) return;
723 auto& node = m_doc->tree.nodes[nodeIdx];
724 m_doc->undoStack.push(new RcxCommand(this,
725 cmd::Rename{node.id, node.name, newName}));
726}
727
728void RcxController::insertNode(uint64_t parentId, int offset, NodeKind kind, const QString& name) {
729 Node n;

Callers 2

testRenameNodeMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by 2

testRenameNodeMethod · 0.64