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

Method positionYChanged

src/frontend/dockwidgets/CustomPointDock.cpp:160–169  ·  view source on GitHub ↗

! called when label's current horizontal position relative to its parent (top, center, bottom) is changed. */

Source from the content-addressed store, hash-verified

158 called when label's current horizontal position relative to its parent (top, center, bottom) is changed.
159*/
160void CustomPointDock::positionYChanged(int index) {
161 CONDITIONAL_LOCK_RETURN;
162
163 auto verPos = WorksheetElement::VerticalPosition(index);
164 for (auto* point : m_points) {
165 auto position = point->position();
166 position.verticalPosition = verPos;
167 point->setPosition(position);
168 }
169}
170
171void CustomPointDock::customPositionXChanged(double value) {
172 CONDITIONAL_RETURN_NO_LOCK;

Callers

nothing calls this directly

Calls 3

VerticalPositionEnum · 0.85
positionMethod · 0.80
setPositionMethod · 0.45

Tested by

no test coverage detected