! \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 */
| 4598 | \see rowColToIndex |
| 4599 | */ |
| 4600 | QCPLayoutElement *QCPLayoutGrid::elementAt(int index) const |
| 4601 | { |
| 4602 | if (index >= 0 && index < elementCount()) |
| 4603 | { |
| 4604 | int row, col; |
| 4605 | indexToRowCol(index, row, col); |
| 4606 | return mElements.at(row).at(col); |
| 4607 | } else |
| 4608 | return 0; |
| 4609 | } |
| 4610 | |
| 4611 | /*! |
| 4612 | \seebaseclassmethod |
nothing calls this directly
no test coverage detected