MCPcopy Create free account
hub / github.com/collin80/SavvyCAN / selectedGraphs

Method selectedGraphs

qcustomplot.cpp:13790–13799  ·  view source on GitHub ↗

! 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 */

Source from the content-addressed store, hash-verified

13788 \see setInteractions, selectedPlottables, QCPAbstractPlottable::setSelectable, QCPAbstractPlottable::setSelection
13789*/
13790QList<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.

Callers 3

removeSelectedGraphMethod · 0.80
editSelectedGraphMethod · 0.80
contextMenuRequestMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected