Logo Search packages:      
Sourcecode: qps version File versions

QScrollBar * QtTableView::verticalScrollBar (  )  const [protected]

Returns a pointer to the vertical scroll bar mainly so you can connect() to its signals. Note that the scroll bar works in pixel values; use findRow() to translate to cell numbers.

Definition at line 1437 of file qttableview.C.

References verSbSliding(), verSbSlidingDone(), verSbValue(), and vScrollBar.

Referenced by setVerScrollBar().

    QtTableView *that = (QtTableView*)this; // semantic const
    if ( !vScrollBar ) {
      QScrollBar *sb = new QScrollBar( QScrollBar::Vertical, that );
#ifndef QT_NO_CURSOR
      sb->setCursor( arrowCursor );
        sb->resize( sb->sizeHint() ); // height is irrelevant
      sb->setTracking( FALSE );
      sb->setFocusPolicy( NoFocus );
      connect( sb, SIGNAL(valueChanged(int)),
      connect( sb, SIGNAL(sliderMoved(int)),
      connect( sb, SIGNAL(sliderReleased()),
      that->vScrollBar = sb;
      return sb;
    return vScrollBar;

Generated by  Doxygen 1.6.0   Back to index