MCPcopy Create free account
hub / github.com/CieNTi/serial_port_plotter / setRangeDrag

Method setRangeDrag

qcustomplot/qcustomplot.cpp:17492–17495  ·  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 0 as \a orientation

Source from the content-addressed store, hash-verified

17490 \see setRangeZoom, setRangeDragAxes, QCustomPlot::setNoAntialiasingOnDrag
17491*/
17492void QCPAxisRect::setRangeDrag(Qt::Orientations orientations)
17493{
17494 mRangeDrag = orientations;
17495}
17496
17497/*!
17498 Sets which axis orientation may be zoomed by the user with the mouse wheel. What orientation

Callers 1

setupPlotMethod · 0.80

Calls 2

orientationFunction · 0.85
dataMethod · 0.80

Tested by

no test coverage detected