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

Method positionXChanged

src/frontend/dockwidgets/CustomPointDock.cpp:146–155  ·  view source on GitHub ↗

SLOTs for changes triggered in CustomPointDock "General"-tab ! called when label's current horizontal position relative to its parent (left, center, right ) is changed. */

Source from the content-addressed store, hash-verified

144 called when label's current horizontal position relative to its parent (left, center, right ) is changed.
145*/
146void CustomPointDock::positionXChanged(int index) {
147 CONDITIONAL_LOCK_RETURN;
148
149 auto horPos = WorksheetElement::HorizontalPosition(index);
150 for (auto* point : m_points) {
151 auto position = point->position();
152 position.horizontalPosition = horPos;
153 point->setPosition(position);
154 }
155}
156
157/*!
158 called when label's current horizontal position relative to its parent (top, center, bottom) is changed.

Callers

nothing calls this directly

Calls 3

HorizontalPositionEnum · 0.85
positionMethod · 0.80
setPositionMethod · 0.45

Tested by

no test coverage detected