MCPcopy Create free account
hub / github.com/cutechess/cutechess / setRangeDrag

Method setRangeDrag

projects/gui/3rdparty/qcustomplot/qcustomplot.cpp:18225–18228  ·  view source on GitHub ↗

! Sets which axis orientation may be range dragged by the user with mouse interaction. What orientation corresponds to which specific axis can be set with \ref setRangeDragAxes(QCPAxis *horizontal, QCPAxis *vertical). By default, the horizontal axis is the bottom axis (xAxis) and the vertical axis is the left axis (yAxis). To disable range dragging entirely, pass \c nullptr as \a or

Source from the content-addressed store, hash-verified

18223 \see setRangeZoom, setRangeDragAxes, QCustomPlot::setNoAntialiasingOnDrag
18224*/
18225void QCPAxisRect::setRangeDrag(Qt::Orientations orientations)
18226{
18227 mRangeDrag = orientations;
18228}
18229
18230/*!
18231 Sets which axis orientation may be zoomed by the user with the mouse wheel. What orientation

Callers 1

setRangeZoomMethod · 0.80

Calls 2

orientationFunction · 0.85
dataMethod · 0.45

Tested by

no test coverage detected