| 2220 | } |
| 2221 | |
| 2222 | void CartesianPlot::addReferenceLine() { |
| 2223 | Q_D(CartesianPlot); |
| 2224 | auto* line = new ReferenceLine(this, i18n("Reference Line")); |
| 2225 | line->setCoordinateSystemIndex(defaultCoordinateSystemIndex()); |
| 2226 | |
| 2227 | if (d->calledFromContextMenu) { |
| 2228 | line->setPositionLogical(d->logicalPos); |
| 2229 | d->calledFromContextMenu = false; |
| 2230 | } |
| 2231 | |
| 2232 | this->addChild(line); |
| 2233 | line->retransform(); |
| 2234 | } |
| 2235 | |
| 2236 | void CartesianPlot::addReferenceRange() { |
| 2237 | auto* range = new ReferenceRange(this, i18n("Reference Range")); |
no test coverage detected