! Returns a list of the selected graphs. If no graphs are currently selected, the list is empty. If you are not only interested in selected graphs but other plottables like QCPCurve, QCPBars, etc., use \ref selectedPlottables. \see setInteractions, selectedPlottables, QCPAbstractPlottable::setSelectable, QCPAbstractPlottable::setSelection */
| 13788 | \see setInteractions, selectedPlottables, QCPAbstractPlottable::setSelectable, QCPAbstractPlottable::setSelection |
| 13789 | */ |
| 13790 | QList<QCPGraph*> QCustomPlot::selectedGraphs() const |
| 13791 | { |
| 13792 | QList<QCPGraph*> result; |
| 13793 | foreach (QCPGraph *graph, mGraphs) |
| 13794 | { |
| 13795 | if (graph->selected()) |
| 13796 | result.append(graph); |
| 13797 | } |
| 13798 | return result; |
| 13799 | } |
| 13800 | |
| 13801 | /*! |
| 13802 | Returns the item with \a index. If the index is invalid, returns 0. |
nothing calls this directly
no outgoing calls
no test coverage detected