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

Method maxColOffset

outdated/win/Qt3/qt3tableview.cpp:2174–2187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2172*/
2173
2174int QtTableView::maxColOffset()
2175{
2176 int mx = maxXOffset();
2177 if ( cellW )
2178 return mx/cellW;
2179 else {
2180 int xcd=0, col=0;
2181 while ( col < nCols && mx > (xcd=cellWidth(col)) ) {
2182 mx -= xcd;
2183 col++;
2184 }
2185 return col;
2186 }
2187}
2188
2189
2190/*!

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected