| 855 | } |
| 856 | |
| 857 | void PlotDataDialog::setAxesColumnLabels(CartesianPlot* plot, const Column* column) { |
| 858 | // Use value labels if possible |
| 859 | if (column && column->valueLabelsInitialized()) { |
| 860 | auto axes = plot->children(AspectType::Axis); |
| 861 | for (auto a : axes) { |
| 862 | auto axis = static_cast<Axis*>(a); |
| 863 | if (axis->orientation() == Axis::Orientation::Vertical) { |
| 864 | // Use first vertical axis |
| 865 | axis->setMajorTicksType(Axis::TicksType::ColumnLabels); |
| 866 | axis->setMajorTicksColumn(column); |
| 867 | break; |
| 868 | } |
| 869 | } |
| 870 | } |
| 871 | } |
| 872 | |
| 873 | void PlotDataDialog::setAxesColumnLabels(CartesianPlot* plot, const QString& columnName) { |
| 874 | Column* column = columnFromName(columnName); |
nothing calls this directly
no test coverage detected