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

Method selectedPlottables

qcustomplot/qcustomplot.cpp:13607–13616  ·  view source on GitHub ↗

! Returns a list of the selected plottables. If no plottables are currently selected, the list is empty. There is a convenience function if you're only interested in selected graphs, see \ref selectedGraphs. \see setInteractions, QCPAbstractPlottable::setSelectable, QCPAbstractPlottable::setSelection */

Source from the content-addressed store, hash-verified

13605 \see setInteractions, QCPAbstractPlottable::setSelectable, QCPAbstractPlottable::setSelection
13606*/
13607QList<QCPAbstractPlottable*> QCustomPlot::selectedPlottables() const
13608{
13609 QList<QCPAbstractPlottable*> result;
13610 foreach (QCPAbstractPlottable *plottable, mPlottables)
13611 {
13612 if (plottable->selected())
13613 result.append(plottable);
13614 }
13615 return result;
13616}
13617
13618/*!
13619 Returns the plottable at the pixel position \a pos. Plottables that only consist of single lines

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected