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

Method QCPItemLine

3rdparty/qcustomplot/qcustomplot.cpp:29056–29066  ·  view source on GitHub ↗

! Creates a line item and sets default values. The created item is automatically registered with \a parentPlot. This QCustomPlot instance takes ownership of the item, so do not delete it manually but use QCustomPlot::removeItem() instead. */

Source from the content-addressed store, hash-verified

29054 ownership of the item, so do not delete it manually but use QCustomPlot::removeItem() instead.
29055*/
29056QCPItemLine::QCPItemLine(QCustomPlot *parentPlot) :
29057 QCPAbstractItem(parentPlot),
29058 start(createPosition(QLatin1String("start"))),
29059 end(createPosition(QLatin1String("end")))
29060{
29061 start->setCoords(0, 0);
29062 end->setCoords(1, 1);
29063
29064 setPen(QPen(Qt::black));
29065 setSelectedPen(QPen(Qt::blue,2));
29066}
29067
29068QCPItemLine::~QCPItemLine()
29069{

Callers

nothing calls this directly

Calls 1

setCoordsMethod · 0.80

Tested by

no test coverage detected