MCPcopy Create free account
hub / github.com/collin80/SavvyCAN / take

Method take

qcustomplot.cpp:4636–4652  ·  view source on GitHub ↗

inherits documentation from base class */

Source from the content-addressed store, hash-verified

4634
4635/* inherits documentation from base class */
4636bool QCPLayoutGrid::take(QCPLayoutElement *element)
4637{
4638 if (element)
4639 {
4640 for (int i=0; i<elementCount(); ++i)
4641 {
4642 if (elementAt(i) == element)
4643 {
4644 takeAt(i);
4645 return true;
4646 }
4647 }
4648 qDebug() << Q_FUNC_INFO << "Element not in this layout, couldn't take";
4649 } else
4650 qDebug() << Q_FUNC_INFO << "Can't take null element";
4651 return false;
4652}
4653
4654/* inherits documentation from base class */
4655QList<QCPLayoutElement*> QCPLayoutGrid::elements(bool recursive) const

Callers 5

~QCPLayoutElementMethod · 0.80
addElementMethod · 0.80
placeTickLabelMethod · 0.80
foreachFunction · 0.80
idChangeMethod · 0.80

Calls 1

elementCountFunction · 0.85

Tested by

no test coverage detected