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

Method rangeFormatChanged

src/backend/worksheet/plots/cartesian/CartesianPlot.cpp:3622–3642  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3620}
3621
3622void 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
3644CartesianPlot::RangeBreaks CartesianPlotPrivate::rangeBreaks(const Dimension dim) {
3645 switch (dim) {

Callers 2

redoMethod · 0.45
undoMethod · 0.45

Calls 2

orientationMethod · 0.45

Tested by

no test coverage detected