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

Method position

qcustomplot/qcustomplot.cpp:12319–12328  ·  view source on GitHub ↗

! Returns the QCPItemPosition with the specified \a name. If this item doesn't have a position by that name, returns 0. This function provides an alternative way to access item positions. Normally, you access positions direcly by their member pointers (which typically have the same variable name as \a name). \see positions, anchor */

Source from the content-addressed store, hash-verified

12317 \see positions, anchor
12318*/
12319QCPItemPosition *QCPAbstractItem::position(const QString &name) const
12320{
12321 for (int i=0; i<mPositions.size(); ++i)
12322 {
12323 if (mPositions.at(i)->name() == name)
12324 return mPositions.at(i);
12325 }
12326 qDebug() << Q_FUNC_INFO << "position with name not found:" << name;
12327 return 0;
12328}
12329
12330/*!
12331 Returns the QCPItemAnchor with the specified \a name. If this item doesn't have an anchor by

Callers 1

jquery.jsFile · 0.80

Calls 2

atMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected