MCPcopy Create free account
hub / github.com/Audio4Linux/JDSP4Linux / item

Method item

3rdparty/qcustomplot/qcustomplot.cpp:14526–14536  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

14524 \see itemCount
14525*/
14526QCPAbstractItem *QCustomPlot::item(int index) const
14527{
14528 if (index >= 0 && index < mItems.size())
14529 {
14530 return mItems.at(index);
14531 } else
14532 {
14533 qDebug() << Q_FUNC_INFO << "index out of bounds:" << index;
14534 return nullptr;
14535 }
14536}
14537
14538/*! \overload
14539

Callers 4

hasItemMethod · 0.80
removeFromLegendMethod · 0.80
enumerateFilesMethod · 0.80
onLegendDoubleClickMethod · 0.80

Calls 3

sizeMethod · 0.45
atMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected