MCPcopy Create free account
hub / github.com/NetHack/NetHack / repaint

Method repaint

outdated/win/Qt3/qt3tableview.cpp:234–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232 screen flicker less than it would otherwise. */
233
234void 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 )

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected