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

Method setVerScrollBar

outdated/win/Qt3/qt3tableview.cpp:1539–1570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1537*/
1538
1539void QtTableView::setVerScrollBar( bool on, bool update )
1540{
1541 if ( on ) {
1542 tFlags |= Tbl_vScrollBar;
1543 verticalScrollBar(); // created
1544 if ( update )
1545 updateScrollBars( verMask | horMask );
1546 else
1547 sbDirty = sbDirty | (horMask | verMask);
1548 if ( testTableFlags( Tbl_hScrollBar ) )
1549 coverCornerSquare( TRUE );
1550 if ( autoUpdate() )
1551 sbDirty = sbDirty | verMask;
1552 } else {
1553 tFlags &= ~Tbl_vScrollBar;
1554 if ( !vScrollBar )
1555 return;
1556 coverCornerSquare( FALSE );
1557 bool hideScrollBar = autoUpdate() && vScrollBar->isVisible();
1558 if ( hideScrollBar )
1559 vScrollBar->hide();
1560 if ( update )
1561 updateScrollBars( horMask );
1562 else
1563 sbDirty = sbDirty | horMask;
1564 if ( hideScrollBar && isVisible() )
1565 repaint( vScrollBar->x(), vScrollBar->y(),
1566 vScrollBar->width(), height() - vScrollBar->y() );
1567 }
1568 if ( update )
1569 updateFrameSize();
1570}
1571
1572
1573

Callers

nothing calls this directly

Calls 1

widthMethod · 0.45

Tested by

no test coverage detected