Diffstat (limited to 'noncore/multimedia/opieplayer2/videowidget.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/videowidget.cpp | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/noncore/multimedia/opieplayer2/videowidget.cpp b/noncore/multimedia/opieplayer2/videowidget.cpp index 48caf00..af06079 100644 --- a/noncore/multimedia/opieplayer2/videowidget.cpp +++ b/noncore/multimedia/opieplayer2/videowidget.cpp @@ -111,4 +111,8 @@ VideoWidget::VideoWidget(QWidget* parent, const char* name, WFlags f) : slider->setGeometry( QRect( 7, 250, 220, 20 ) ); + videoFrame = new XineVideoWidget ( this, "Video frame" ); + + connect ( videoFrame, SIGNAL( videoResized ( const QSize & )), this, SIGNAL( videoResized ( const QSize & ))); + connect( slider, SIGNAL( sliderPressed() ), this, SLOT( sliderPressed() ) ); connect( slider, SIGNAL( sliderReleased() ), this, SLOT( sliderReleased() ) ); @@ -128,6 +132,4 @@ VideoWidget::VideoWidget(QWidget* parent, const char* name, WFlags f) : setPlaying( mediaPlayerState->playing() ); - videoFrame = new XineVideoWidget( 240, 155 ,this, "Video frame" ); - } @@ -280,4 +282,5 @@ void VideoWidget::makeVisible() { resize( qApp->desktop()->size() ); slider->hide(); + videoFrame-> setGeometry ( 0, 0, width ( ), height ( )); } else { setBackgroundPixmap( Resource::loadPixmap( backgroundPix ) ); @@ -285,4 +288,5 @@ void VideoWidget::makeVisible() { showMaximized(); slider->show(); + videoFrame->setGeometry( QRect( 10, 20, 220, 160 ) ); } } @@ -295,9 +299,9 @@ void VideoWidget::paintEvent( QPaintEvent * ) { // Clear the background p.setBrush( QBrush( Qt::black ) ); - videoFrame->setGeometry( QRect( 0, 0 , 240 ,340 ) ); +// videoFrame->setGeometry( QRect( 0, 0 , 240 ,320 ) ); } else { - videoFrame->setGeometry( QRect( 0, 15 , 240 ,170 ) ); + // videoFrame->setGeometry( QRect( 0, 15 , 240 ,170 ) ); // draw the buttons @@ -383,2 +387,8 @@ XineVideoWidget* VideoWidget::vidWidget() { return videoFrame; } + + +void VideoWidget::setFullscreen ( bool b ) +{ + setToggleButton( VideoFullscreen, b ); +}
\ No newline at end of file |