Logo Search packages:      
Sourcecode: koffice version File versions

int QtTableView::maxRowOffset (  )  [protected]

Returns the index of the last row, which may be at the top edge of the view.

Depending on the Tbl_scrollLastVCell flag, this may or may not be the last row.

See also:
maxYOffset(), maxColOffset()

Definition at line 2199 of file qttableview.cpp.

References cellHeight(), and maxYOffset().

    int my = maxYOffset();
    if ( cellH )
      return my/cellH;
    else {
      int ycd=0, row=0;
      while ( row < nRows && my > (ycd=cellHeight(row)) ) {
          my -= ycd;
      return row;

Generated by  Doxygen 1.6.0   Back to index