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

Method plottable

qcustomplot/qcustomplot.cpp:13504–13514  ·  view source on GitHub ↗

! Returns the plottable with \a index. If the index is invalid, returns 0. There is an overloaded version of this function with no parameter which returns the last added plottable, see QCustomPlot::plottable() \see plottableCount */

Source from the content-addressed store, hash-verified

13502 \see plottableCount
13503*/
13504QCPAbstractPlottable *QCustomPlot::plottable(int index)
13505{
13506 if (index >= 0 && index < mPlottables.size())
13507 {
13508 return mPlottables.at(index);
13509 } else
13510 {
13511 qDebug() << Q_FUNC_INFO << "index out of bounds:" << index;
13512 return 0;
13513 }
13514}
13515
13516/*! \overload
13517

Callers 3

legend_double_clickMethod · 0.80
itemWithPlottableMethod · 0.80
colorMapsMethod · 0.80

Calls 3

atMethod · 0.80
sizeMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected