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

Method handleAspectMoved

src/backend/worksheet/Worksheet.cpp:381–390  ·  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

379 * called when one of the children was moved, re-adjusts the Z-values for all children.
380 */
381void Worksheet::handleAspectMoved() {
382 qreal zVal = 0;
383 const auto& children = this->children<WorksheetElement>(ChildIndexFlag::IncludeHidden);
384 for (auto* child : children)
385 child->graphicsItem()->setZValue(zVal++);
386
387 Q_D(Worksheet);
388 if (d->layout != Worksheet::Layout::NoLayout)
389 d->updateLayout(false);
390}
391
392QGraphicsScene* Worksheet::scene() const {
393 Q_D(const Worksheet);

Callers

nothing calls this directly

Calls 3

updateLayoutMethod · 0.80
setZValueMethod · 0.45
graphicsItemMethod · 0.45

Tested by

no test coverage detected