| 602 | } |
| 603 | |
| 604 | void 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 ########################### |
no test coverage detected