Logo Search packages:      
Sourcecode: koffice version File versions

int QtTableView::totalWidth (  )  [protected, virtual]

Returns the total width of the table in pixels.

This function is virtual and should be reimplemented by subclasses that have variable cell widths and a non-trivial cellWidth() function, or a large number of columns in the table.

The default implementation may be slow for very wide tables.

See also:
cellWidth(), totalHeight()

Definition at line 662 of file qttableview.cpp.

References cellWidth().

Referenced by maxXOffset().

    if ( cellW ) {
      return cellW*nCols;
    } else {
      int tw = 0;
      for( int i = 0 ; i < nCols ; i++ )
          tw += cellWidth( i );
      return tw;

Generated by  Doxygen 1.6.0   Back to index