! 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. */
| 11353 | parent item, QCPItemAnchor is just an intermediary. |
| 11354 | */ |
| 11355 | QPointF QCPItemAnchor::pixelPosition() const |
| 11356 | { |
| 11357 | if (mParentItem) |
| 11358 | { |
| 11359 | if (mAnchorId > -1) |
| 11360 | { |
| 11361 | return mParentItem->anchorPixelPosition(mAnchorId); |
| 11362 | } else |
| 11363 | { |
| 11364 | qDebug() << Q_FUNC_INFO << "no valid anchor id set:" << mAnchorId; |
| 11365 | return QPointF(); |
| 11366 | } |
| 11367 | } else |
| 11368 | { |
| 11369 | qDebug() << Q_FUNC_INFO << "no parent item set"; |
| 11370 | return QPointF(); |
| 11371 | } |
| 11372 | } |
| 11373 | |
| 11374 | /*! \internal |
| 11375 |
no test coverage detected