| 353 | } |
| 354 | |
| 355 | void WorksheetElement::execMoveBehind(QAction* action) { |
| 356 | auto* parent = parentAspect(); |
| 357 | const int newIndex = action->data().toInt(); |
| 358 | const int currIndex = parent->indexOfChild<AbstractAspect>(this, ChildIndexFlag::IncludeHidden); |
| 359 | parent->moveChild(this, newIndex - currIndex); |
| 360 | } |
| 361 | |
| 362 | // align rect at position pos using horAlign and vertAlign |
| 363 | QPointF WorksheetElement::align(QPointF pos, QRectF rect, HorizontalAlignment horAlign, VerticalAlignment vertAlign, bool positive) const { |