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

Method undoAction

Tools/EditorFramework/ActionChangePositionData.cpp:30–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28 }
29
30 void ActionChangePositionData::undoAction()
31 {
32 if (mIndex != MyGUI::ITEM_NONE)
33 {
34 DataPtr parent = mData1->getParent();
35
36 parent->removeChild(mData1);
37 parent->insertChild(mIndex, mData1);
38
39 DataSelectorManager::getInstance().changeParent(parent);
40 }
41 }
42
43 void ActionChangePositionData::setData1(DataPtr _data)
44 {

Callers

nothing calls this directly

Calls 4

insertChildMethod · 0.80
changeParentMethod · 0.80
getParentMethod · 0.45
removeChildMethod · 0.45

Tested by

no test coverage detected