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

Method pixelPosition

3rdparty/qcustomplot/qcustomplot.cpp:12071–12088  ·  view source on GitHub ↗

! Returns the final absolute pixel position of the QCPItemAnchor on the QCustomPlot surface. The pixel information is internally retrieved via QCPAbstractItem::anchorPixelPosition of the parent item, QCPItemAnchor is just an intermediary. */

Source from the content-addressed store, hash-verified

12069 parent item, QCPItemAnchor is just an intermediary.
12070*/
12071QPointF QCPItemAnchor::pixelPosition() const
12072{
12073 if (mParentItem)
12074 {
12075 if (mAnchorId > -1)
12076 {
12077 return mParentItem->anchorPixelPosition(mAnchorId);
12078 } else
12079 {
12080 qDebug() << Q_FUNC_INFO << "no valid anchor id set:" << mAnchorId;
12081 return {};
12082 }
12083 } else
12084 {
12085 qDebug() << Q_FUNC_INFO << "no parent item set";
12086 return {};
12087 }
12088}
12089
12090/*! \internal
12091

Callers 5

setPixelPositionMethod · 0.80
selectTestMethod · 0.80
drawMethod · 0.80
anchorPixelPositionMethod · 0.80
getFinalRectMethod · 0.80

Calls 3

anchorPixelPositionMethod · 0.80
coordToPixelMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected