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

Method removeItem

qcustomplot.cpp:13844–13856  ·  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

13842 \see clearItems
13843*/
13844bool QCustomPlot::removeItem(QCPAbstractItem *item)
13845{
13846 if (mItems.contains(item))
13847 {
13848 delete item;
13849 mItems.removeOne(item);
13850 return true;
13851 } else
13852 {
13853 qDebug() << Q_FUNC_INFO << "item not in list:" << reinterpret_cast<quintptr>(item);
13854 return false;
13855 }
13856}
13857
13858/*! \overload
13859

Callers 1

removeFromLegendMethod · 0.80

Calls 3

fillOrderFunction · 0.85
containsMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected