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

Method QCPItemLine

qcustomplot/qcustomplot.cpp:28266–28276  ·  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

28264 ownership of the item, so do not delete it manually but use QCustomPlot::removeItem() instead.
28265*/
28266QCPItemLine::QCPItemLine(QCustomPlot *parentPlot) :
28267 QCPAbstractItem(parentPlot),
28268 start(createPosition(QLatin1String("start"))),
28269 end(createPosition(QLatin1String("end")))
28270{
28271 start->setCoords(0, 0);
28272 end->setCoords(1, 1);
28273
28274 setPen(QPen(Qt::black));
28275 setSelectedPen(QPen(Qt::blue,2));
28276}
28277
28278QCPItemLine::~QCPItemLine()
28279{

Callers

nothing calls this directly

Calls 1

setCoordsMethod · 0.80

Tested by

no test coverage detected