author | sandman <sandman> | 2002-08-03 23:58:20 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-08-03 23:58:20 (UTC) |
commit | 0cecd08dba036f39e414e34a2b7c070008ee3884 (patch) (unidiff) | |
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) (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 | |||
@@ -111,4 +111,8 @@ VideoWidget::VideoWidget(QWidget* parent, const char* name, WFlags f) : | |||
111 | slider->setGeometry( QRect( 7, 250, 220, 20 ) ); | 111 | slider->setGeometry( QRect( 7, 250, 220, 20 ) ); |
112 | 112 | ||
113 | videoFrame = new XineVideoWidget ( this, "Video frame" ); | ||
114 | |||
115 | connect ( videoFrame, SIGNAL( videoResized ( const QSize & )), this, SIGNAL( videoResized ( const QSize & ))); | ||
116 | |||
113 | connect( slider, SIGNAL( sliderPressed() ), this, SLOT( sliderPressed() ) ); | 117 | connect( slider, SIGNAL( sliderPressed() ), this, SLOT( sliderPressed() ) ); |
114 | connect( slider, SIGNAL( sliderReleased() ), this, SLOT( sliderReleased() ) ); | 118 | connect( slider, SIGNAL( sliderReleased() ), this, SLOT( sliderReleased() ) ); |
@@ -128,6 +132,4 @@ VideoWidget::VideoWidget(QWidget* parent, const char* name, WFlags f) : | |||
128 | setPlaying( mediaPlayerState->playing() ); | 132 | setPlaying( mediaPlayerState->playing() ); |
129 | 133 | ||
130 | videoFrame = new XineVideoWidget( 240, 155 ,this, "Video frame" ); | ||
131 | |||
132 | } | 134 | } |
133 | 135 | ||
@@ -280,4 +282,5 @@ void VideoWidget::makeVisible() { | |||
280 | resize( qApp->desktop()->size() ); | 282 | resize( qApp->desktop()->size() ); |
281 | slider->hide(); | 283 | slider->hide(); |
284 | videoFrame-> setGeometry ( 0, 0, width ( ), height ( )); | ||
282 | } else { | 285 | } else { |
283 | setBackgroundPixmap( Resource::loadPixmap( backgroundPix ) ); | 286 | setBackgroundPixmap( Resource::loadPixmap( backgroundPix ) ); |
@@ -285,4 +288,5 @@ void VideoWidget::makeVisible() { | |||
285 | showMaximized(); | 288 | showMaximized(); |
286 | slider->show(); | 289 | slider->show(); |
290 | videoFrame->setGeometry( QRect( 10, 20, 220, 160 ) ); | ||
287 | } | 291 | } |
288 | } | 292 | } |
@@ -295,9 +299,9 @@ void VideoWidget::paintEvent( QPaintEvent * ) { | |||
295 | // Clear the background | 299 | // Clear the background |
296 | p.setBrush( QBrush( Qt::black ) ); | 300 | p.setBrush( QBrush( Qt::black ) ); |
297 | videoFrame->setGeometry( QRect( 0, 0 , 240 ,340 ) ); | 301 | // videoFrame->setGeometry( QRect( 0, 0 , 240 ,320 ) ); |
298 | 302 | ||
299 | } else { | 303 | } else { |
300 | 304 | ||
301 | videoFrame->setGeometry( QRect( 0, 15 , 240 ,170 ) ); | 305 | // videoFrame->setGeometry( QRect( 0, 15 , 240 ,170 ) ); |
302 | // draw the buttons | 306 | // draw the buttons |
303 | 307 | ||
@@ -383,2 +387,8 @@ XineVideoWidget* VideoWidget::vidWidget() { | |||
383 | return videoFrame; | 387 | return videoFrame; |
384 | } | 388 | } |
389 | |||
390 | |||
391 | void VideoWidget::setFullscreen ( bool b ) | ||
392 | { | ||
393 | setToggleButton( VideoFullscreen, b ); | ||
394 | } \ No newline at end of file | ||