MCPcopy Create free account
hub / github.com/KDE/labplot / handleAspectMoved

Method handleAspectMoved

src/backend/worksheet/WorksheetElementContainer.cpp:183–188  ·  view source on GitHub ↗

! * called when one of the children was moved, re-adjusts the Z-values for all children. */

Source from the content-addressed store, hash-verified

181 * called when one of the children was moved, re-adjusts the Z-values for all children.
182 */
183void 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
190void WorksheetElementContainer::childHovered() {
191 Q_D(WorksheetElementContainer);

Callers

nothing calls this directly

Calls 1

setZValueMethod · 0.45

Tested by

no test coverage detected