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

Method QCPItemStraightLine

3rdparty/qcustomplot/qcustomplot.cpp:28873–28883  ·  view source on GitHub ↗

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

28871 ownership of the item, so do not delete it manually but use QCustomPlot::removeItem() instead.
28872*/
28873QCPItemStraightLine::QCPItemStraightLine(QCustomPlot *parentPlot) :
28874 QCPAbstractItem(parentPlot),
28875 point1(createPosition(QLatin1String("point1"))),
28876 point2(createPosition(QLatin1String("point2")))
28877{
28878 point1->setCoords(0, 0);
28879 point2->setCoords(1, 1);
28880
28881 setPen(QPen(Qt::black));
28882 setSelectedPen(QPen(Qt::blue,2));
28883}
28884
28885QCPItemStraightLine::~QCPItemStraightLine()
28886{

Callers

nothing calls this directly

Calls 1

setCoordsMethod · 0.80

Tested by

no test coverage detected