MCPcopy Create free account
hub / github.com/MyGUI/mygui / doAction

Method doAction

Tools/EditorFramework/ActionRenameData.cpp:16–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14{
15
16 void ActionRenameData::doAction()
17 {
18 mOldValues.emplace_back(getProperty(), getProperty()->getValue());
19 getProperty()->setValue(getValue());
20
21 DataPtr parent = getProperty()->getOwner()->getParent();
22 PropertyUtility::storeUniqueNameProperty("Name", "UniqueName", parent, mOldValues);
23 }
24
25 void ActionRenameData::undoAction()
26 {

Callers

nothing calls this directly

Calls 5

getValueFunction · 0.70
getValueMethod · 0.45
setValueMethod · 0.45
getParentMethod · 0.45
getOwnerMethod · 0.45

Tested by

no test coverage detected