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

Method retransform

src/backend/worksheet/WorksheetElementContainer.cpp:116–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116void WorksheetElementContainer::retransform() {
117 if (isLoading())
118 return;
119
120 PERFTRACE(QLatin1String(Q_FUNC_INFO));
121 Q_D(WorksheetElementContainer);
122
123 // when retransforming every child here, don't emit the changed signal for every child,
124 // emit it only once for the whole plot to avoid multiple refreshes of the worksheet preview.
125 d->suppressChanged = true;
126
127 const auto& elements = children<WorksheetElement>(AbstractAspect::ChildIndexFlag::IncludeHidden | AbstractAspect::ChildIndexFlag::Compress);
128 for (auto* child : elements)
129 child->retransform();
130
131 d->recalcShapeAndBoundingRect();
132
133 if (m_resizeItem)
134 m_resizeItem->setRect(rect());
135
136 d->suppressChanged = false;
137 Q_EMIT changed();
138}
139
140/*!
141 * called if the size of the worksheet page was changed and the content has to be adjusted/resized (\c pageResize = true)

Callers

nothing calls this directly

Calls 2

setRectMethod · 0.45

Tested by

no test coverage detected