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

Method clearReferencePoints

src/backend/datapicker/DatapickerImage.cpp:434–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

432}
433
434void 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
448void DatapickerImage::setPlotPointsType(const PointsType pointsType) {
449 Q_D(DatapickerImage);

Callers 1

Calls 3

clearPointsMethod · 0.80
isEmptyMethod · 0.45
removeMethod · 0.45

Tested by 1