MCPcopy Create free account
hub / github.com/LUX-Core/lux / QCPAbstractItem

Method QCPAbstractItem

src/qt/qcustomplot.cpp:12203–12217  ·  view source on GitHub ↗

! Base class constructor which initializes base class members. */

Source from the content-addressed store, hash-verified

12201 Base class constructor which initializes base class members.
12202*/
12203QCPAbstractItem::QCPAbstractItem(QCustomPlot *parentPlot) :
12204 QCPLayerable(parentPlot),
12205 mClipToAxisRect(false),
12206 mSelectable(true),
12207 mSelected(false)
12208{
12209 parentPlot->registerItem(this);
12210
12211 QList<QCPAxisRect*> rects = parentPlot->axisRects();
12212 if (rects.size() > 0)
12213 {
12214 setClipToAxisRect(true);
12215 setClipAxisRect(rects.first());
12216 }
12217}
12218
12219QCPAbstractItem::~QCPAbstractItem()
12220{

Callers

nothing calls this directly

Calls 3

registerItemMethod · 0.80
axisRectsMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected