! Returns whether this item has an anchor with the specified \a name. Note that you can check for positions with this function, too. This is because every position is also an anchor (QCPItemPosition inherits from QCPItemAnchor). \see anchor, position */
| 12357 | \see anchor, position |
| 12358 | */ |
| 12359 | bool QCPAbstractItem::hasAnchor(const QString &name) const |
| 12360 | { |
| 12361 | for (int i=0; i<mAnchors.size(); ++i) |
| 12362 | { |
| 12363 | if (mAnchors.at(i)->name() == name) |
| 12364 | return true; |
| 12365 | } |
| 12366 | return false; |
| 12367 | } |
| 12368 | |
| 12369 | /*! \internal |
| 12370 |