Logo Search packages:      
Sourcecode: koffice version File versions

void QtTableView::updateCell ( int  row,
int  col,
bool  erase = TRUE 
) [protected]

Repaints the cell at row row, column col if it is inside the view.

If erase is TRUE, the relevant part of the view is cleared to the background color/pixmap before the contents are repainted.

See also:
isVisible()

Definition at line 956 of file qttableview.cpp.

References cellHeight(), cellWidth(), colXPos(), repaint(), rowYPos(), and viewRect().

{
    int xPos, yPos;
    if ( !colXPos( col, &xPos ) )
      return;
    if ( !rowYPos( row, &yPos ) )
      return;
    QRect uR = QRect( xPos, yPos,
                  cellW ? cellW : cellWidth(col),
                  cellH ? cellH : cellHeight(row) );
    repaint( uR.intersect(viewRect()), erase );
}


Generated by  Doxygen 1.6.0   Back to index