MCPcopy Create free account
hub / github.com/LUX-Core/lux / selectedAxes

Method selectedAxes

src/qt/qcustomplot.cpp:14304–14317  ·  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

14302 QCPAxis::setSelectableParts
14303*/
14304QList<QCPAxis*> QCustomPlot::selectedAxes() const
14305{
14306 QList<QCPAxis*> result, allAxes;
14307 Q_FOREACH (QCPAxisRect *rect, axisRects())
14308 allAxes << rect->axes();
14309
14310 Q_FOREACH (QCPAxis *axis, allAxes)
14311 {
14312 if (axis->selectedParts() != QCPAxis::spNone)
14313 result.append(axis);
14314 }
14315
14316 return result;
14317}
14318
14319/*!
14320 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
Q_FOREACHFunction · 0.70

Tested by

no test coverage detected