| 2234 | } |
| 2235 | |
| 2236 | void 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 | |
| 2250 | int CartesianPlot::curveCount() { |
| 2251 | return children<XYCurve>().size(); |
no test coverage detected