MCPcopy Create free account
hub / github.com/ZhuYanzhen1/miniFOC / position

Method position

tools/qcustomplot.cpp:13032–13041  ·  view source on GitHub ↗

! Returns the QCPItemPosition with the specified \a name. If this item doesn't have a position by that name, returns \c nullptr. 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

13030 \see positions, anchor
13031*/
13032QCPItemPosition *QCPAbstractItem::position(const QString &name) const
13033{
13034 foreach (QCPItemPosition *position, mPositions)
13035 {
13036 if (position->name() == name)
13037 return position;
13038 }
13039 qDebug() << Q_FUNC_INFO << "position with name not found:" << name;
13040 return nullptr;
13041}
13042
13043/*!
13044 Returns the QCPItemAnchor with the specified \a name. If this item doesn't have an anchor by

Callers 2

wheelEventMethod · 0.80
jquery.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected