! \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 */
| 4623 | \see rowColToIndex |
| 4624 | */ |
| 4625 | QCPLayoutElement *QCPLayoutGrid::elementAt(int index) const |
| 4626 | { |
| 4627 | if (index >= 0 && index < elementCount()) |
| 4628 | { |
| 4629 | int row, col; |
| 4630 | indexToRowCol(index, row, col); |
| 4631 | return mElements.at(row).at(col); |
| 4632 | } else |
| 4633 | return nullptr; |
| 4634 | } |
| 4635 | |
| 4636 | /*! |
| 4637 | \seebaseclassmethod |
nothing calls this directly
no test coverage detected