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

Method QCPItemTracer

3rdparty/qcustomplot/qcustomplot.cpp:30440–30455  ·  view source on GitHub ↗

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

30438 ownership of the item, so do not delete it manually but use QCustomPlot::removeItem() instead.
30439*/
30440QCPItemTracer::QCPItemTracer(QCustomPlot *parentPlot) :
30441 QCPAbstractItem(parentPlot),
30442 position(createPosition(QLatin1String("position"))),
30443 mSize(6),
30444 mStyle(tsCrosshair),
30445 mGraph(nullptr),
30446 mGraphKey(0),
30447 mInterpolating(false)
30448{
30449 position->setCoords(0, 0);
30450
30451 setBrush(Qt::NoBrush);
30452 setSelectedBrush(Qt::NoBrush);
30453 setPen(QPen(Qt::black));
30454 setSelectedPen(QPen(Qt::blue, 2));
30455}
30456
30457QCPItemTracer::~QCPItemTracer()
30458{

Callers

nothing calls this directly

Calls 1

setCoordsMethod · 0.80

Tested by

no test coverage detected