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

Method QCPItemEllipse

3rdparty/qcustomplot/qcustomplot.cpp:29959–29980  ·  view source on GitHub ↗

! Creates an ellipse 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

29957 ownership of the item, so do not delete it manually but use QCustomPlot::removeItem() instead.
29958*/
29959QCPItemEllipse::QCPItemEllipse(QCustomPlot *parentPlot) :
29960 QCPAbstractItem(parentPlot),
29961 topLeft(createPosition(QLatin1String("topLeft"))),
29962 bottomRight(createPosition(QLatin1String("bottomRight"))),
29963 topLeftRim(createAnchor(QLatin1String("topLeftRim"), aiTopLeftRim)),
29964 top(createAnchor(QLatin1String("top"), aiTop)),
29965 topRightRim(createAnchor(QLatin1String("topRightRim"), aiTopRightRim)),
29966 right(createAnchor(QLatin1String("right"), aiRight)),
29967 bottomRightRim(createAnchor(QLatin1String("bottomRightRim"), aiBottomRightRim)),
29968 bottom(createAnchor(QLatin1String("bottom"), aiBottom)),
29969 bottomLeftRim(createAnchor(QLatin1String("bottomLeftRim"), aiBottomLeftRim)),
29970 left(createAnchor(QLatin1String("left"), aiLeft)),
29971 center(createAnchor(QLatin1String("center"), aiCenter))
29972{
29973 topLeft->setCoords(0, 1);
29974 bottomRight->setCoords(1, 0);
29975
29976 setPen(QPen(Qt::black));
29977 setSelectedPen(QPen(Qt::blue, 2));
29978 setBrush(Qt::NoBrush);
29979 setSelectedBrush(Qt::NoBrush);
29980}
29981
29982QCPItemEllipse::~QCPItemEllipse()
29983{

Callers

nothing calls this directly

Calls 1

setCoordsMethod · 0.80

Tested by

no test coverage detected