! 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 */
| 13605 | \see setInteractions, QCPAbstractPlottable::setSelectable, QCPAbstractPlottable::setSelection |
| 13606 | */ |
| 13607 | QList<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 |
nothing calls this directly
no outgoing calls
no test coverage detected