MCPcopy Index your code
hub / github.com/Audio4Linux/JDSP4Linux / range

Method range

3rdparty/qcustomplot/qcustomplot.cpp:2863–2876  ·  view source on GitHub ↗

! A convenience function which returns the coordinate range of the provided \a axis, that this selection rect currently encompasses. */

Source from the content-addressed store, hash-verified

2861 selection rect currently encompasses.
2862*/
2863QCPRange QCPSelectionRect::range(const QCPAxis *axis) const
2864{
2865 if (axis)
2866 {
2867 if (axis->orientation() == Qt::Horizontal)
2868 return {axis->pixelToCoord(mRect.left()), axis->pixelToCoord(mRect.left()+mRect.width())};
2869 else
2870 return {axis->pixelToCoord(mRect.top()+mRect.height()), axis->pixelToCoord(mRect.top())};
2871 } else
2872 {
2873 qDebug() << Q_FUNC_INFO << "called with axis zero";
2874 return {};
2875 }
2876}
2877
2878/*!
2879 Sets the pen that will be used to draw the selection rect outline.

Callers 15

drawGridLinesMethod · 0.45
setScaleRatioMethod · 0.45
rescaleKeyAxisMethod · 0.45
rescaleValueAxisMethod · 0.45
setupFullAxesBoxMethod · 0.45
mousePressEventMethod · 0.45
setTypeMethod · 0.45
drawMethod · 0.45
getVisibleDataBoundsMethod · 0.45
getFillBasePointMethod · 0.45
getCurveLinesMethod · 0.45

Calls 1

pixelToCoordMethod · 0.80

Tested by

no test coverage detected