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

Method addReferenceRange

src/backend/worksheet/plots/cartesian/CartesianPlot.cpp:2236–2248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2234}
2235
2236void CartesianPlot::addReferenceRange() {
2237 auto* range = new ReferenceRange(this, i18n("Reference Range"));
2238 range->setCoordinateSystemIndex(defaultCoordinateSystemIndex());
2239
2240 // Q_D(CartesianPlot);
2241 // if (d->calledFromContextMenu) {
2242 // range->setPositionLogical(d->logicalPos);
2243 // d->calledFromContextMenu = false;
2244 // }
2245
2246 this->addChild(range);
2247 range->retransform();
2248}
2249
2250int CartesianPlot::curveCount() {
2251 return children<XYCurve>().size();

Callers 1

keyPressEventMethod · 0.80

Calls 3

addChildMethod · 0.45
retransformMethod · 0.45

Tested by

no test coverage detected