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

Method updatePositionLimit

src/backend/worksheet/plots/cartesian/ReferenceRange.cpp:403–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401}
402
403void ReferenceRangePrivate::updatePositionLimit() {
404 switch (orientation) {
405 case WorksheetElement::Orientation::Horizontal:
406 position.positionLimit = WorksheetElement::PositionLimit::Y;
407 break;
408 case WorksheetElement::Orientation::Vertical:
409 position.positionLimit = WorksheetElement::PositionLimit::X;
410 break;
411 case WorksheetElement::Orientation::Both:
412 position.positionLimit = WorksheetElement::PositionLimit::None;
413 break;
414 }
415}
416
417/*!
418 * called when the user moves the graphics item with the mouse and the scene position of the item is changed.

Callers 2

initMethod · 0.45
loadMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected