MCPcopy Create free account
hub / github.com/CieNTi/serial_port_plotter / QCPPlottableLegendItem

Method QCPPlottableLegendItem

qcustomplot/qcustomplot.cpp:18180–18185  ·  view source on GitHub ↗

! Creates a new legend item associated with \a plottable. Once it's created, it can be added to the legend via \ref QCPLegend::addItem. A more convenient way of adding/removing a plottable to/from the legend is via the functions \ref QCPAbstractPlottable::addToLegend and \ref QCPAbstractPlottable::removeFromLegend. */

Source from the content-addressed store, hash-verified

18178 QCPAbstractPlottable::addToLegend and \ref QCPAbstractPlottable::removeFromLegend.
18179*/
18180QCPPlottableLegendItem::QCPPlottableLegendItem(QCPLegend *parent, QCPAbstractPlottable *plottable) :
18181 QCPAbstractLegendItem(parent),
18182 mPlottable(plottable)
18183{
18184 setAntialiased(false);
18185}
18186
18187/*! \internal
18188

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected