Logo Search packages:      
Sourcecode: koffice version File versions

void QtTableView::paintCell ( QPainter *  p,
int  row,
int  col 
) [protected, pure virtual]

This pure virtual function is called to paint the single cell at (row,col) using p, which is open when paintCell() is called and must remain open.

The coordinate system is translated so that the origin is at the top-left corner of the cell to be painted, i.e. cell coordinates. Do not scale or shear the coordinate system (or if you do, restore the transformation matrix before you return).

The painter is not clipped by default and for maximum efficiency. For safety, call setTableFlags(Tbl_clipCellPainting) to enable clipping.

See also:
paintEvent(), setTableFlags()

Referenced by paintEvent().


Generated by  Doxygen 1.6.0   Back to index