! 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. */
| 12069 | parent item, QCPItemAnchor is just an intermediary. |
| 12070 | */ |
| 12071 | QPointF 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 |
no test coverage detected