| 432 | } |
| 433 | |
| 434 | void DatapickerImage::clearReferencePoints() { |
| 435 | Q_D(DatapickerImage); |
| 436 | const auto& points = children<DatapickerPoint>(ChildIndexFlag::IncludeHidden); |
| 437 | if (!points.isEmpty()) { |
| 438 | beginMacro(i18n("%1: remove all axis points", name())); |
| 439 | |
| 440 | for (auto* point : points) |
| 441 | point->remove(); |
| 442 | endMacro(); |
| 443 | d->axisPoints.clearPoints(); |
| 444 | Q_EMIT axisPointsRemoved(); |
| 445 | } |
| 446 | } |
| 447 | |
| 448 | void DatapickerImage::setPlotPointsType(const PointsType pointsType) { |
| 449 | Q_D(DatapickerImage); |