author | sandman <sandman> | 2002-08-03 23:58:20 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-08-03 23:58:20 (UTC) |
commit | 0cecd08dba036f39e414e34a2b7c070008ee3884 (patch) (side-by-side diff) | |
tree | c187c9308f0553b1d5d9cd59093bcc3c11740665 /noncore/multimedia/opieplayer2/videowidget.cpp | |
parent | 8fb605fdfbbcbc654f567efcb59f02ec0d26228a (diff) | |
download | opie-0cecd08dba036f39e414e34a2b7c070008ee3884.zip opie-0cecd08dba036f39e414e34a2b7c070008ee3884.tar.gz opie-0cecd08dba036f39e414e34a2b7c070008ee3884.tar.bz2 |
Added support for fullscreen playback
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 @@ -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 |