| 13 | { |
| 14 | |
| 15 | void ActionChangePositionData::doAction() |
| 16 | { |
| 17 | if (mData1 != mData2 && mData1->getParent() == mData2->getParent()) |
| 18 | { |
| 19 | DataPtr parent = mData1->getParent(); |
| 20 | mIndex = parent->getChildIndex(mData1); |
| 21 | size_t index2 = parent->getChildIndex(mData2); |
| 22 | |
| 23 | parent->removeChild(mData1); |
| 24 | parent->insertChild(index2, mData1); |
| 25 | |
| 26 | DataSelectorManager::getInstance().changeParent(parent); |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | void ActionChangePositionData::undoAction() |
| 31 | { |
nothing calls this directly
no test coverage detected