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

Method selectedAxes

qcustomplot/qcustomplot.cpp:14331–14344  ·  view source on GitHub ↗

! Returns the axes that currently have selected parts, i.e. whose selection state is not \ref QCPAxis::spNone. \see selectedPlottables, selectedLegends, setInteractions, QCPAxis::setSelectedParts, QCPAxis::setSelectableParts */

Source from the content-addressed store, hash-verified

14329 QCPAxis::setSelectableParts
14330*/
14331QList<QCPAxis*> QCustomPlot::selectedAxes() const
14332{
14333 QList<QCPAxis*> result, allAxes;
14334 foreach (QCPAxisRect *rect, axisRects())
14335 allAxes << rect->axes();
14336
14337 foreach (QCPAxis *axis, allAxes)
14338 {
14339 if (axis->selectedParts() != QCPAxis::spNone)
14340 result.append(axis);
14341 }
14342
14343 return result;
14344}
14345
14346/*!
14347 Returns the legends that currently have selected parts, i.e. whose selection state is not \ref

Callers

nothing calls this directly

Calls 2

axesMethod · 0.80
foreachFunction · 0.70

Tested by

no test coverage detected