| 12048 | } |
| 12049 | |
| 12050 | QCPItemAnchor::~QCPItemAnchor() |
| 12051 | { |
| 12052 | // unregister as parent at children: |
| 12053 | foreach (QCPItemPosition *child, mChildrenX.values()) |
| 12054 | { |
| 12055 | if (child->parentAnchorX() == this) |
| 12056 | child->setParentAnchorX(nullptr); // this acts back on this anchor and child removes itself from mChildrenX |
| 12057 | } |
| 12058 | foreach (QCPItemPosition *child, mChildrenY.values()) |
| 12059 | { |
| 12060 | if (child->parentAnchorY() == this) |
| 12061 | child->setParentAnchorY(nullptr); // this acts back on this anchor and child removes itself from mChildrenY |
| 12062 | } |
| 12063 | } |
| 12064 | |
| 12065 | /*! |
| 12066 | Returns the final absolute pixel position of the QCPItemAnchor on the QCustomPlot surface. |
nothing calls this directly
no test coverage detected