MCPcopy Create free account
hub / github.com/CieNTi/serial_port_plotter / hasAnchor

Method hasAnchor

qcustomplot/qcustomplot.cpp:12359–12367  ·  view source on GitHub ↗

! 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 */

Source from the content-addressed store, hash-verified

12357 \see anchor, position
12358*/
12359bool 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

Callers

nothing calls this directly

Calls 2

atMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected