| 3620 | } |
| 3621 | |
| 3622 | void CartesianPlotPrivate::rangeFormatChanged(const Dimension dim) { |
| 3623 | DEBUG(Q_FUNC_INFO) |
| 3624 | switch (dim) { |
| 3625 | case Dimension::X: { |
| 3626 | for (auto* axis : q->children<Axis>()) { |
| 3627 | // TODO: only if x range of axis's plot range is changed |
| 3628 | if (axis->orientation() == Axis::Orientation::Horizontal) |
| 3629 | axis->retransformTickLabelStrings(); |
| 3630 | } |
| 3631 | break; |
| 3632 | } |
| 3633 | case Dimension::Y: { |
| 3634 | for (auto* axis : q->children<Axis>()) { |
| 3635 | // TODO: only if x range of axis's plot range is changed |
| 3636 | if (axis->orientation() == Axis::Orientation::Horizontal) |
| 3637 | axis->retransformTickLabelStrings(); |
| 3638 | } |
| 3639 | break; |
| 3640 | } |
| 3641 | } |
| 3642 | } |
| 3643 | |
| 3644 | CartesianPlot::RangeBreaks CartesianPlotPrivate::rangeBreaks(const Dimension dim) { |
| 3645 | switch (dim) { |
no test coverage detected