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

Method QCPItemPixmap

3rdparty/qcustomplot/qcustomplot.cpp:30154–30174  ·  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

30152 ownership of the item, so do not delete it manually but use QCustomPlot::removeItem() instead.
30153*/
30154QCPItemPixmap::QCPItemPixmap(QCustomPlot *parentPlot) :
30155 QCPAbstractItem(parentPlot),
30156 topLeft(createPosition(QLatin1String("topLeft"))),
30157 bottomRight(createPosition(QLatin1String("bottomRight"))),
30158 top(createAnchor(QLatin1String("top"), aiTop)),
30159 topRight(createAnchor(QLatin1String("topRight"), aiTopRight)),
30160 right(createAnchor(QLatin1String("right"), aiRight)),
30161 bottom(createAnchor(QLatin1String("bottom"), aiBottom)),
30162 bottomLeft(createAnchor(QLatin1String("bottomLeft"), aiBottomLeft)),
30163 left(createAnchor(QLatin1String("left"), aiLeft)),
30164 mScaled(false),
30165 mScaledPixmapInvalidated(true),
30166 mAspectRatioMode(Qt::KeepAspectRatio),
30167 mTransformationMode(Qt::SmoothTransformation)
30168{
30169 topLeft->setCoords(0, 1);
30170 bottomRight->setCoords(1, 0);
30171
30172 setPen(Qt::NoPen);
30173 setSelectedPen(QPen(Qt::blue));
30174}
30175
30176QCPItemPixmap::~QCPItemPixmap()
30177{

Callers

nothing calls this directly

Calls 1

setCoordsMethod · 0.80

Tested by

no test coverage detected