MCPcopy Create free account
hub / github.com/NetHack/NetHack / lastRowVisible

Method lastRowVisible

outdated/win/Qt3/qt3tableview.cpp:1002–1017  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1000*/
1001
1002int 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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected