| 1483 | } |
| 1484 | |
| 1485 | bool PlotWidget::invalidateAdapterOffsets(std::optional<DatasetId> only) { |
| 1486 | bool changed = false; |
| 1487 | for (auto& info : curveList()) { |
| 1488 | auto* adapter = dynamic_cast<DatastoreCurveAdapter*>(info.curve->data()); |
| 1489 | if (adapter == nullptr) { |
| 1490 | continue; // PointSeriesXY ignores display offset (plan §12) |
| 1491 | } |
| 1492 | if (only.has_value() && adapter->source().dataset_id != *only) { |
| 1493 | continue; |
| 1494 | } |
| 1495 | adapter->onDisplayOffsetChanged(); |
| 1496 | changed = true; |
| 1497 | } |
| 1498 | return changed; |
| 1499 | } |
| 1500 | |
| 1501 | } // namespace PJ |
nothing calls this directly
no test coverage detected