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

Method removeItem

3rdparty/qcustomplot/qcustomplot.cpp:14561–14573  ·  view source on GitHub ↗

! Removes the specified item from the plot and deletes it. Returns true on success. \see clearItems */

Source from the content-addressed store, hash-verified

14559 \see clearItems
14560*/
14561bool QCustomPlot::removeItem(QCPAbstractItem *item)
14562{
14563 if (mItems.contains(item))
14564 {
14565 delete item;
14566 mItems.removeOne(item);
14567 return true;
14568 } else
14569 {
14570 qDebug() << Q_FUNC_INFO << "item not in list:" << reinterpret_cast<quintptr>(item);
14571 return false;
14572 }
14573}
14574
14575/*! \overload
14576

Callers 1

removeFromLegendMethod · 0.45

Calls 3

fillOrderFunction · 0.85
containsMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected