| 232 | screen flicker less than it would otherwise. */ |
| 233 | |
| 234 | void QtTableView::repaint( int x, int y, int w, int h, bool erase ) |
| 235 | { |
| 236 | if ( !isVisible() || testWState(WState_BlockUpdates) ) |
| 237 | return; |
| 238 | if ( w < 0 ) |
| 239 | w = width() - x; |
| 240 | if ( h < 0 ) |
| 241 | h = height() - y; |
| 242 | QRect r( x, y, w, h ); |
| 243 | if ( r.isEmpty() ) |
| 244 | return; // nothing to do |
| 245 | QPaintEvent e( r ); |
| 246 | if ( erase && backgroundMode() != NoBackground ) |
| 247 | eraseInPaint = TRUE; // erase when painting |
| 248 | paintEvent( &e ); |
| 249 | eraseInPaint = FALSE; |
| 250 | } |
| 251 | |
| 252 | /*! |
| 253 | \overload void QtTableView::repaint( const QRect &r, bool erase ) |
nothing calls this directly
no outgoing calls
no test coverage detected