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

Method customPositionXChanged

src/frontend/dockwidgets/ImageDock.cpp:312–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

310}
311
312void ImageDock::customPositionXChanged(double value) {
313 CONDITIONAL_RETURN_NO_LOCK;
314
315 const double x = Worksheet::convertToSceneUnits(value, m_worksheetUnit);
316 for (auto* image : m_imageList) {
317 auto position = image->position();
318 position.point.setX(x);
319 image->setPosition(position);
320 }
321}
322
323void ImageDock::customPositionYChanged(double value) {
324 CONDITIONAL_RETURN_NO_LOCK;

Callers

nothing calls this directly

Calls 3

positionMethod · 0.80
setXMethod · 0.80
setPositionMethod · 0.45

Tested by

no test coverage detected