| 1000 | */ |
| 1001 | |
| 1002 | int QtTableView::lastRowVisible() const |
| 1003 | { |
| 1004 | int cellMaxY; |
| 1005 | int row = findRawRow( maxViewY(), &cellMaxY ); |
| 1006 | if ( row == -1 || row >= nRows ) { // maxViewY() past end? |
| 1007 | row = nRows - 1; // yes: return last row |
| 1008 | } else { |
| 1009 | if ( testTableFlags(Tbl_cutCellsV) && cellMaxY > maxViewY() ) { |
| 1010 | if ( row == yCellOffs ) // cut by right margin? |
| 1011 | return -1; // yes, nothing in the view |
| 1012 | else |
| 1013 | row = row - 1; // cut by margin, one back |
| 1014 | } |
| 1015 | } |
| 1016 | return row; |
| 1017 | } |
| 1018 | |
| 1019 | /*! |
| 1020 | Returns the index of the last (right) column in the view. |
nothing calls this directly
no outgoing calls
no test coverage detected