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

Method setNumRows

outdated/win/Qt3/qt3tableview.cpp:274–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272*/
273
274void QtTableView::setNumRows( int rows )
275{
276 if ( rows < 0 ) {
277#if defined(QT_CHECK_RANGE)
278 qWarning( "QtTableView::setNumRows: (%s) Negative argument %d.",
279 name( "unnamed" ), rows );
280#endif
281 return;
282 }
283 if ( nRows == rows )
284 return;
285
286 if ( autoUpdate() && isVisible() ) {
287 int oldLastVisible = lastRowVisible();
288 int oldTopCell = topCell();
289 nRows = rows;
290 if ( autoUpdate() && isVisible() &&
291 ( oldLastVisible != lastRowVisible() || oldTopCell != topCell() ) )
292 repaint( oldTopCell != topCell() );
293 } else {
294 // Be more careful - if destructing, bad things might happen.
295 nRows = rows;
296 }
297 updateScrollBars( verRange );
298 updateFrameSize();
299}
300
301/*!
302 \fn int QtTableView::numCols() const

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected