Diffstat (limited to 'noncore/multimedia/opieplayer2/videowidget.cpp') (more/less context) (ignore 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 @@ -112,2 +112,6 @@ VideoWidget::VideoWidget(QWidget* parent, const char* name, WFlags f) : + videoFrame = new XineVideoWidget ( this, "Video frame" ); + + connect ( videoFrame, SIGNAL( videoResized ( const QSize & )), this, SIGNAL( videoResized ( const QSize & ))); + connect( slider, SIGNAL( sliderPressed() ), this, SLOT( sliderPressed() ) ); @@ -129,4 +133,2 @@ VideoWidget::VideoWidget(QWidget* parent, const char* name, WFlags f) : - videoFrame = new XineVideoWidget( 240, 155 ,this, "Video frame" ); - } @@ -281,2 +283,3 @@ void VideoWidget::makeVisible() { slider->hide(); + videoFrame-> setGeometry ( 0, 0, width ( ), height ( )); } else { @@ -286,2 +289,3 @@ void VideoWidget::makeVisible() { slider->show(); + videoFrame->setGeometry( QRect( 10, 20, 220, 160 ) ); } @@ -296,3 +300,3 @@ void VideoWidget::paintEvent( QPaintEvent * ) { p.setBrush( QBrush( Qt::black ) ); - videoFrame->setGeometry( QRect( 0, 0 , 240 ,340 ) ); +// videoFrame->setGeometry( QRect( 0, 0 , 240 ,320 ) ); @@ -300,3 +304,3 @@ void VideoWidget::paintEvent( QPaintEvent * ) { - videoFrame->setGeometry( QRect( 0, 15 , 240 ,170 ) ); + // videoFrame->setGeometry( QRect( 0, 15 , 240 ,170 ) ); // draw the buttons @@ -384 +388,7 @@ XineVideoWidget* VideoWidget::vidWidget() { } + + +void VideoWidget::setFullscreen ( bool b ) +{ + setToggleButton( VideoFullscreen, b ); +}
\ No newline at end of file |