Logo Search packages:      
Sourcecode: koffice version File versions

int QtTableView::maxColOffset (  )  [protected]

Returns the index of the last column, which may be at the left edge of the view.

Depending on the Tbl_scrollLastHCell flag, this may or may not be the last column.

See also:
maxXOffset(), maxRowOffset()

Definition at line 2173 of file qttableview.cpp.

References cellWidth(), and maxXOffset().

    int mx = maxXOffset();
    if ( cellW )
      return mx/cellW;
    else {
      int xcd=0, col=0;
      while ( col < nCols && mx > (xcd=cellWidth(col)) ) {
          mx -= xcd;
      return col;

Generated by  Doxygen 1.6.0   Back to index