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

Method setCellWidth

outdated/win/Qt3/qt3tableview.cpp:580–597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

578*/
579
580void QtTableView::setCellWidth( int cellWidth )
581{
582 if ( cellW == cellWidth )
583 return;
584#if defined(QT_CHECK_RANGE)
585 if ( cellWidth < 0 || cellWidth > SHRT_MAX ) {
586 qWarning( "QtTableView::setCellWidth: (%s) Argument out of range (%d)",
587 name( "unnamed" ), cellWidth );
588 return;
589 }
590#endif
591 cellW = (short)cellWidth;
592
593 updateScrollBars( horSteps | horRange );
594 if ( autoUpdate() && isVisible() )
595 repaint();
596
597}
598
599/*!
600 \overload int QtTableView::cellHeight() const

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected