MCPcopy Create free account
hub / github.com/LUX-Core/lux / item

Method item

src/qt/qcustomplot.cpp:13798–13808  ·  view source on GitHub ↗

! Returns the item 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 item, see QCustomPlot::item() \see itemCount */

Source from the content-addressed store, hash-verified

13796 \see itemCount
13797*/
13798QCPAbstractItem *QCustomPlot::item(int index) const
13799{
13800 if (index >= 0 && index < mItems.size())
13801 {
13802 return mItems.at(index);
13803 } else
13804 {
13805 qDebug() << Q_FUNC_INFO << "index out of bounds:" << index;
13806 return 0;
13807 }
13808}
13809
13810/*! \overload
13811

Callers 6

hasItemMethod · 0.80
on_editButton_clickedMethod · 0.80
on_stopButton_clickedMethod · 0.80

Calls 3

sizeMethod · 0.45
atMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected