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

Method positionXChanged

src/frontend/dockwidgets/ImageDock.cpp:291–298  ·  view source on GitHub ↗

Position ! called when label's current horizontal position relative to its parent (left, center, right, custom ) is changed. */

Source from the content-addressed store, hash-verified

289 called when label's current horizontal position relative to its parent (left, center, right, custom ) is changed.
290*/
291void ImageDock::positionXChanged(int index) {
292 CONDITIONAL_LOCK_RETURN;
293
294 auto position = m_image->position();
295 position.horizontalPosition = WorksheetElement::HorizontalPosition(index);
296 for (auto* image : m_imageList)
297 image->setPosition(position);
298}
299
300/*!
301 called when label's current horizontal position relative to its parent (top, center, bottom, custom ) is changed.

Callers

nothing calls this directly

Calls 3

HorizontalPositionEnum · 0.85
positionMethod · 0.80
setPositionMethod · 0.45

Tested by

no test coverage detected