! * called when one of the children was moved, re-adjusts the Z-values for all children. */
| 181 | * called when one of the children was moved, re-adjusts the Z-values for all children. |
| 182 | */ |
| 183 | void WorksheetElementContainer::handleAspectMoved() { |
| 184 | qreal zVal = 0; |
| 185 | const auto& children = this->children<WorksheetElement>(ChildIndexFlag::IncludeHidden); |
| 186 | for (auto* child : children) |
| 187 | child->setZValue(zVal++); |
| 188 | } |
| 189 | |
| 190 | void WorksheetElementContainer::childHovered() { |
| 191 | Q_D(WorksheetElementContainer); |