MCPcopy Create free account
hub / github.com/ZhuYanzhen1/miniFOC / removeItem

Method removeItem

tools/qcustomplot.cpp:14558–14570  ·  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

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

Callers 1

removeFromLegendMethod · 0.80

Calls 3

fillOrderFunction · 0.85
containsMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected