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

Method takeAt

qcustomplot.cpp:4619–4633  ·  view source on GitHub ↗

! \seebaseclassmethod Note that the association of the linear \a index to the row/column based cells depends on the current setting of \ref setFillOrder. \see rowColToIndex */

Source from the content-addressed store, hash-verified

4617 \see rowColToIndex
4618*/
4619QCPLayoutElement *QCPLayoutGrid::takeAt(int index)
4620{
4621 if (QCPLayoutElement *el = elementAt(index))
4622 {
4623 releaseElement(el);
4624 int row, col;
4625 indexToRowCol(index, row, col);
4626 mElements[row][col] = 0;
4627 return el;
4628 } else
4629 {
4630 qDebug() << Q_FUNC_INFO << "Attempt to take invalid index:" << index;
4631 return 0;
4632 }
4633}
4634
4635/* inherits documentation from base class */
4636bool QCPLayoutGrid::take(QCPLayoutElement *element)

Callers

nothing calls this directly

Calls 1

removeAtMethod · 0.80

Tested by

no test coverage detected