Diffstat (limited to 'noncore/multimedia/opieplayer2/videowidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/videowidget.cpp | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/noncore/multimedia/opieplayer2/videowidget.cpp b/noncore/multimedia/opieplayer2/videowidget.cpp index a8bf252..8f6a8a9 100644 --- a/noncore/multimedia/opieplayer2/videowidget.cpp +++ b/noncore/multimedia/opieplayer2/videowidget.cpp | |||
@@ -376,35 +376,4 @@ void VideoWidget::makeVisible() { | |||
376 | } | 376 | } |
377 | 377 | ||
378 | |||
379 | |||
380 | |||
381 | void VideoWidget::paintEvent( QPaintEvent * pe) { | ||
382 | QPainter p( this ); | ||
383 | |||
384 | if ( mediaPlayerState.isFullscreen() ) { | ||
385 | // Clear the background | ||
386 | p.setBrush( QBrush( Qt::black ) ); | ||
387 | } else { | ||
388 | if ( !pe->erased() ) { | ||
389 | // Combine with background and double buffer | ||
390 | QPixmap pix( pe->rect().size() ); | ||
391 | QPainter p( &pix ); | ||
392 | p.translate( -pe->rect().topLeft().x(), -pe->rect().topLeft().y() ); | ||
393 | p.drawTiledPixmap( pe->rect(), backgroundPixmap, pe->rect().topLeft() ); | ||
394 | for ( unsigned int i = 0; i < buttons.count(); i++ ) { | ||
395 | paintButton( p, buttons[ i ] ); | ||
396 | } | ||
397 | QPainter p2( this ); | ||
398 | p2.drawPixmap( pe->rect().topLeft(), pix ); | ||
399 | } else { | ||
400 | QPainter p( this ); | ||
401 | for ( unsigned int i = 0; i < buttons.count(); i++ ) | ||
402 | paintButton( p, buttons[ i ] ); | ||
403 | } | ||
404 | //slider->repaint( TRUE ); | ||
405 | } | ||
406 | } | ||
407 | |||
408 | |||
409 | void VideoWidget::keyReleaseEvent( QKeyEvent *e) { | 378 | void VideoWidget::keyReleaseEvent( QKeyEvent *e) { |
410 | switch ( e->key() ) { | 379 | switch ( e->key() ) { |