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

Method QCPItemRect

3rdparty/qcustomplot/qcustomplot.cpp:29454–29472  ·  view source on GitHub ↗

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

29452 ownership of the item, so do not delete it manually but use QCustomPlot::removeItem() instead.
29453*/
29454QCPItemRect::QCPItemRect(QCustomPlot *parentPlot) :
29455 QCPAbstractItem(parentPlot),
29456 topLeft(createPosition(QLatin1String("topLeft"))),
29457 bottomRight(createPosition(QLatin1String("bottomRight"))),
29458 top(createAnchor(QLatin1String("top"), aiTop)),
29459 topRight(createAnchor(QLatin1String("topRight"), aiTopRight)),
29460 right(createAnchor(QLatin1String("right"), aiRight)),
29461 bottom(createAnchor(QLatin1String("bottom"), aiBottom)),
29462 bottomLeft(createAnchor(QLatin1String("bottomLeft"), aiBottomLeft)),
29463 left(createAnchor(QLatin1String("left"), aiLeft))
29464{
29465 topLeft->setCoords(0, 1);
29466 bottomRight->setCoords(1, 0);
29467
29468 setPen(QPen(Qt::black));
29469 setSelectedPen(QPen(Qt::blue,2));
29470 setBrush(Qt::NoBrush);
29471 setSelectedBrush(Qt::NoBrush);
29472}
29473
29474QCPItemRect::~QCPItemRect()
29475{

Callers

nothing calls this directly

Calls 1

setCoordsMethod · 0.80

Tested by

no test coverage detected