Logo Search packages:      
Sourcecode: qps version File versions

void QtTableView::setVerScrollBar ( bool  on,
bool  update = TRUE 
) [private, virtual]

Enables or disables the vertical scroll bar, as required by setAutoUpdate() and the table flags.

Definition at line 1537 of file qttableview.C.

References autoUpdate(), coverCornerSquare(), repaint(), testTableFlags(), updateScrollBars(), and verticalScrollBar().

Referenced by clearTableFlags(), and setTableFlags().

{
    if ( on ) {
      tFlags |= Tbl_vScrollBar;
      verticalScrollBar(); // created
      if ( update )
          updateScrollBars( verMask | horMask );
      else
          sbDirty = sbDirty | (horMask | verMask);
      if ( testTableFlags( Tbl_hScrollBar ) )
          coverCornerSquare( TRUE );
      if ( autoUpdate() )
          sbDirty = sbDirty | verMask;
    } else {
      tFlags &= ~Tbl_vScrollBar;
      if ( !vScrollBar )
          return;
      coverCornerSquare( FALSE );
      bool hideScrollBar = autoUpdate() && vScrollBar->isVisible();
      if ( hideScrollBar )
          vScrollBar->hide();
      if ( update )
          updateScrollBars( horMask );
      else
          sbDirty = sbDirty | horMask;
      if ( hideScrollBar && isVisible() )
          repaint( vScrollBar->x(), vScrollBar->y(),
                 vScrollBar->width(), height() - vScrollBar->y() );
    }
    if ( update )
      updateFrameSize();
}


Generated by  Doxygen 1.6.0   Back to index