MCPcopy Index your code
hub / github.com/Audio4Linux/JDSP4Linux / QCPItemCurve

Method QCPItemCurve

3rdparty/qcustomplot/qcustomplot.cpp:29294–29308  ·  view source on GitHub ↗

! Creates a curve 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

29292 ownership of the item, so do not delete it manually but use QCustomPlot::removeItem() instead.
29293*/
29294QCPItemCurve::QCPItemCurve(QCustomPlot *parentPlot) :
29295 QCPAbstractItem(parentPlot),
29296 start(createPosition(QLatin1String("start"))),
29297 startDir(createPosition(QLatin1String("startDir"))),
29298 endDir(createPosition(QLatin1String("endDir"))),
29299 end(createPosition(QLatin1String("end")))
29300{
29301 start->setCoords(0, 0);
29302 startDir->setCoords(0.5, 0);
29303 endDir->setCoords(0, 0.5);
29304 end->setCoords(1, 1);
29305
29306 setPen(QPen(Qt::black));
29307 setSelectedPen(QPen(Qt::blue,2));
29308}
29309
29310QCPItemCurve::~QCPItemCurve()
29311{

Callers

nothing calls this directly

Calls 1

setCoordsMethod · 0.80

Tested by

no test coverage detected