From d2c7228d2efe6f47ef5b7ec04157fcead775be74 Mon Sep 17 00:00:00 2001 From: zecke Date: Thu, 11 Jul 2002 22:44:54 +0000 Subject: broken video widget --- (limited to 'noncore/multimedia/opieplayer2/videowidget.cpp') diff --git a/noncore/multimedia/opieplayer2/videowidget.cpp b/noncore/multimedia/opieplayer2/videowidget.cpp index 8fdb3d3..d3898a0 100644 --- a/noncore/multimedia/opieplayer2/videowidget.cpp +++ b/noncore/multimedia/opieplayer2/videowidget.cpp @@ -288,16 +288,16 @@ void VideoWidget::paintEvent( QPaintEvent * ) { if ( mediaPlayerState->fullscreen() ) { // Clear the background - p.setBrush( QBrush( Qt::black ) ); - p.drawRect( rect() ); +// p.setBrush( QBrush( Qt::black ) ); + //p.drawRect( rect() ); } else { // draw border qDrawShadePanel( &p, 4, 15, 230, 170, colorGroup(), TRUE, 5, NULL ); // Clear the movie screen first - p.setBrush( QBrush( Qt::black ) ); - p.drawRect( 9, 20, 220, 160 ); +// p.setBrush( QBrush( Qt::black ) ); +// p.drawRect( 9, 20, 220, 160 ); // draw current frame (centrally positioned from scaling to maintain aspect ratio) //p.drawImage( 9 + (220 - scaledWidth) / 2, 20 + (160 - scaledHeight) / 2, *currentFrame, 0, 0, scaledWidth, scaledHeight ); @@ -309,6 +309,7 @@ void VideoWidget::paintEvent( QPaintEvent * ) { // draw the slider slider->repaint( TRUE ); +// videoFrame->repaint( TRUE ); } } @@ -382,3 +383,6 @@ void VideoWidget::keyReleaseEvent( QKeyEvent *e) }; } +XineVideoWidget* VideoWidget::vidWidget() { + return videoFrame; +} -- cgit v0.9.0.2