MCPcopy Create free account
hub / github.com/LUX-Core/lux / takeAt

Method takeAt

src/qt/qcustomplot.cpp:4612–4626  ·  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

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

Callers 2

removeParamItemMethod · 0.80
clearMethod · 0.80

Calls 1

removeAtMethod · 0.80

Tested by

no test coverage detected