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

Method updatePositionLimit

src/backend/worksheet/plots/cartesian/ReferenceLine.cpp:274–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274void ReferenceLinePrivate::updatePositionLimit() {
275 switch (orientation) {
276 case WorksheetElement::Orientation::Horizontal:
277 position.positionLimit = WorksheetElement::PositionLimit::Y;
278 break;
279 case WorksheetElement::Orientation::Vertical:
280 position.positionLimit = WorksheetElement::PositionLimit::X;
281 break;
282 case WorksheetElement::Orientation::Both:
283 position.positionLimit = WorksheetElement::PositionLimit::None;
284 break;
285 }
286}
287/*!
288 recalculates the outer bounds and the shape of the item.
289*/

Callers 2

initMethod · 0.45
loadMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected