| 346 | } |
| 347 | |
| 348 | void WorksheetElement::execMoveInFrontOf(QAction* action) { |
| 349 | auto* parent = parentAspect(); |
| 350 | const int newIndex = action->data().toInt(); |
| 351 | const int currIndex = parent->indexOfChild<AbstractAspect>(this, ChildIndexFlag::IncludeHidden); |
| 352 | parent->moveChild(this, newIndex - currIndex); |
| 353 | } |
| 354 | |
| 355 | void WorksheetElement::execMoveBehind(QAction* action) { |
| 356 | auto* parent = parentAspect(); |