Logo Search packages:      
Sourcecode: qps version File versions

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

Returns the total height of the table in pixels.

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

The default implementation may be slow for very tall tables.

See also:
cellHeight(), totalWidth()

Definition at line 685 of file qttableview.C.

References cellHeight().

Referenced by maxYOffset().

    if ( cellH ) {
      return cellH*nRows;
    } else {
      int th = 0;
      for( int i = 0 ; i < nRows ; i++ )
          th += cellHeight( i );
      return th;

Generated by  Doxygen 1.6.0   Back to index