! 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. */
| 11342 | parent item, QCPItemAnchor is just an intermediary. |
| 11343 | */ |
| 11344 | QPointF QCPItemAnchor::pixelPosition() const |
| 11345 | { |
| 11346 | if (mParentItem) |
| 11347 | { |
| 11348 | if (mAnchorId > -1) |
| 11349 | { |
| 11350 | return mParentItem->anchorPixelPosition(mAnchorId); |
| 11351 | } else |
| 11352 | { |
| 11353 | qDebug() << Q_FUNC_INFO << "no valid anchor id set:" << mAnchorId; |
| 11354 | return QPointF(); |
| 11355 | } |
| 11356 | } else |
| 11357 | { |
| 11358 | qDebug() << Q_FUNC_INFO << "no parent item set"; |
| 11359 | return QPointF(); |
| 11360 | } |
| 11361 | } |
| 11362 | |
| 11363 | /*! \internal |
| 11364 |
no test coverage detected