! \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 */
| 4610 | \see rowColToIndex |
| 4611 | */ |
| 4612 | QCPLayoutElement *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 */ |
| 4629 | bool QCPLayoutGrid::take(QCPLayoutElement *element) |
no test coverage detected