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

Method maxRowOffset

outdated/win/Qt3/qt3tableview.cpp:2200–2213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2198*/
2199
2200int QtTableView::maxRowOffset()
2201{
2202 int my = maxYOffset();
2203 if ( cellH )
2204 return my/cellH;
2205 else {
2206 int ycd=0, row=0;
2207 while ( row < nRows && my > (ycd=cellHeight(row)) ) {
2208 my -= ycd;
2209 row++;
2210 }
2211 return row;
2212 }
2213}
2214
2215
2216void QtTableView::showOrHideScrollBars()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected