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

Method updateImage

src/backend/datapicker/DatapickerImage.cpp:604–623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

602}
603
604void DatapickerImagePrivate::updateImage() {
605 WAIT_CURSOR;
606 q->isLoaded = false;
607
608 if (q->originalPlotImage.isNull()) {
609 // hide segments if they are visible
610 q->m_segments->setSegmentsVisible(false);
611 } else
612 uploadImage();
613
614 auto points = q->parentAspect()->children<DatapickerPoint>(AbstractAspect::ChildIndexFlag::Recursive | AbstractAspect::ChildIndexFlag::IncludeHidden);
615 if (!points.isEmpty()) {
616 for (auto* point : points)
617 point->remove();
618 }
619
620 Q_EMIT q->requestUpdate();
621 Q_EMIT q->requestUpdateActions();
622 RESET_CURSOR;
623}
624
625// ##############################################################################
626// ################## Serialization/Deserialization ###########################

Callers 1

finalizeMethod · 0.45

Calls 5

isNullMethod · 0.80
setSegmentsVisibleMethod · 0.80
parentAspectMethod · 0.80
isEmptyMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected