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

Method QCPItemText

3rdparty/qcustomplot/qcustomplot.cpp:29617–29641  ·  view source on GitHub ↗

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

29615 ownership of the item, so do not delete it manually but use QCustomPlot::removeItem() instead.
29616*/
29617QCPItemText::QCPItemText(QCustomPlot *parentPlot) :
29618 QCPAbstractItem(parentPlot),
29619 position(createPosition(QLatin1String("position"))),
29620 topLeft(createAnchor(QLatin1String("topLeft"), aiTopLeft)),
29621 top(createAnchor(QLatin1String("top"), aiTop)),
29622 topRight(createAnchor(QLatin1String("topRight"), aiTopRight)),
29623 right(createAnchor(QLatin1String("right"), aiRight)),
29624 bottomRight(createAnchor(QLatin1String("bottomRight"), aiBottomRight)),
29625 bottom(createAnchor(QLatin1String("bottom"), aiBottom)),
29626 bottomLeft(createAnchor(QLatin1String("bottomLeft"), aiBottomLeft)),
29627 left(createAnchor(QLatin1String("left"), aiLeft)),
29628 mText(QLatin1String("text")),
29629 mPositionAlignment(Qt::AlignCenter),
29630 mTextAlignment(Qt::AlignTop|Qt::AlignHCenter),
29631 mRotation(0)
29632{
29633 position->setCoords(0, 0);
29634
29635 setPen(Qt::NoPen);
29636 setSelectedPen(Qt::NoPen);
29637 setBrush(Qt::NoBrush);
29638 setSelectedBrush(Qt::NoBrush);
29639 setColor(Qt::black);
29640 setSelectedColor(Qt::blue);
29641}
29642
29643QCPItemText::~QCPItemText()
29644{

Callers

nothing calls this directly

Calls 1

setCoordsMethod · 0.80

Tested by

no test coverage detected