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

Method QCPItemBracket

3rdparty/qcustomplot/qcustomplot.cpp:30800–30813  ·  view source on GitHub ↗

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

30798 ownership of the item, so do not delete it manually but use QCustomPlot::removeItem() instead.
30799*/
30800QCPItemBracket::QCPItemBracket(QCustomPlot *parentPlot) :
30801 QCPAbstractItem(parentPlot),
30802 left(createPosition(QLatin1String("left"))),
30803 right(createPosition(QLatin1String("right"))),
30804 center(createAnchor(QLatin1String("center"), aiCenter)),
30805 mLength(8),
30806 mStyle(bsCalligraphic)
30807{
30808 left->setCoords(0, 0);
30809 right->setCoords(1, 1);
30810
30811 setPen(QPen(Qt::black));
30812 setSelectedPen(QPen(Qt::blue, 2));
30813}
30814
30815QCPItemBracket::~QCPItemBracket()
30816{

Callers

nothing calls this directly

Calls 1

setCoordsMethod · 0.80

Tested by

no test coverage detected