| 1067 | } |
| 1068 | |
| 1069 | Range<double> PlotViewWidget::getAxisRange(Axis axis, AxisProperties axisProperties) const |
| 1070 | { |
| 1071 | Range<double> range; |
| 1072 | const auto lineStartInPlot = this->convertPixelPosToPlotPos(axisProperties.line.p1()); |
| 1073 | range.min = (axis == Axis::X) ? lineStartInPlot.x() : lineStartInPlot.y(); |
| 1074 | auto lineEndInPlot = this->convertPixelPosToPlotPos(axisProperties.line.p2()); |
| 1075 | range.max = (axis == Axis::X) ? lineEndInPlot.x() : lineEndInPlot.y(); |
| 1076 | return range; |
| 1077 | } |
| 1078 | |
| 1079 | QRectF PlotViewWidget::getMaxLabelDrawSize(QPainter & painter, |
| 1080 | Axis axis, |
nothing calls this directly
no test coverage detected