summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/videowidget.cpp
Side-by-side diff
Diffstat (limited to 'noncore/multimedia/opieplayer2/videowidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/videowidget.cpp24
1 files changed, 6 insertions, 18 deletions
diff --git a/noncore/multimedia/opieplayer2/videowidget.cpp b/noncore/multimedia/opieplayer2/videowidget.cpp
index d3898a0..bce6b89 100644
--- a/noncore/multimedia/opieplayer2/videowidget.cpp
+++ b/noncore/multimedia/opieplayer2/videowidget.cpp
@@ -124,4 +124,4 @@ VideoWidget::VideoWidget(QWidget* parent, const char* name, WFlags f) :
- videoFrame = new XineVideoWidget( 200, 150 ,this, "Video frame" );
- videoFrame->setGeometry( QRect( 10, 20, 220, 160 ) );
+ videoFrame = new XineVideoWidget( 240, 155 ,this, "Video frame" );
+ videoFrame->setGeometry( QRect( 0, 15 , 240 ,170 ) );
}
@@ -290,17 +290,7 @@ void VideoWidget::paintEvent( QPaintEvent * ) {
// Clear the background
-// p.setBrush( QBrush( Qt::black ) );
- //p.drawRect( rect() );
-
+ p.setBrush( QBrush( Qt::black ) );
+ videoFrame->setGeometry( QRect( 0, 0 , 240 ,340 ) );
+
} 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 );
-
- // 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 );
-
- // draw the buttons
+ // draw the buttons
for ( int i = 0; i < numButtons; i++ ) {
@@ -308,6 +298,4 @@ void VideoWidget::paintEvent( QPaintEvent * ) {
}
-
// draw the slider
slider->repaint( TRUE );
-// videoFrame->repaint( TRUE );
}