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

Method removeFromLegend

3rdparty/qcustomplot/qcustomplot.cpp:11855–11867  ·  view source on GitHub ↗

! \overload Removes the plottable from the specifed \a legend. This means the \ref QCPPlottableLegendItem that is associated with this plottable is removed. Returns true on success, i.e. if the legend exists and a legend item associated with this plottable was found and removed. \see addToLegend, QCPLegend::removeItem */

Source from the content-addressed store, hash-verified

11853 \see addToLegend, QCPLegend::removeItem
11854*/
11855bool QCPAbstractPlottable::removeFromLegend(QCPLegend *legend) const
11856{
11857 if (!legend)
11858 {
11859 qDebug() << Q_FUNC_INFO << "passed legend is null";
11860 return false;
11861 }
11862
11863 if (QCPPlottableLegendItem *lip = legend->itemWithPlottable(this))
11864 return legend->removeItem(lip);
11865 else
11866 return false;
11867}
11868
11869/*! \overload
11870

Callers 2

removePlottableMethod · 0.80
removeGraphMethod · 0.80

Calls 4

itemWithPlottableMethod · 0.80
itemCountMethod · 0.80
itemMethod · 0.80
removeItemMethod · 0.45

Tested by

no test coverage detected