author | llornkcor <llornkcor> | 2002-08-20 12:53:30 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-08-20 12:53:30 (UTC) |
commit | 491f95a2c6a5676f08520e494e125ba8b20e0eae (patch) (unidiff) | |
tree | 8d792da71025cc27da4abcb32cd139ba4cce2ec2 | |
parent | ec61d92a7ea43e517d38d26af71164d0fd70d16c (diff) | |
download | opie-491f95a2c6a5676f08520e494e125ba8b20e0eae.zip opie-491f95a2c6a5676f08520e494e125ba8b20e0eae.tar.gz opie-491f95a2c6a5676f08520e494e125ba8b20e0eae.tar.bz2 |
remove crap
-rw-r--r-- | noncore/multimedia/opieplayer2/videowidget.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/noncore/multimedia/opieplayer2/videowidget.cpp b/noncore/multimedia/opieplayer2/videowidget.cpp index 5b53568..53837c7 100644 --- a/noncore/multimedia/opieplayer2/videowidget.cpp +++ b/noncore/multimedia/opieplayer2/videowidget.cpp | |||
@@ -431,76 +431,67 @@ void VideoWidget::closeEvent( QCloseEvent* ) { | |||
431 | mediaPlayerState->setList(); | 431 | mediaPlayerState->setList(); |
432 | } | 432 | } |
433 | 433 | ||
434 | 434 | ||
435 | 435 | ||
436 | void VideoWidget::keyReleaseEvent( QKeyEvent *e) { | 436 | void VideoWidget::keyReleaseEvent( QKeyEvent *e) { |
437 | switch ( e->key() ) { | 437 | switch ( e->key() ) { |
438 | ////////////////////////////// Zaurus keys | 438 | ////////////////////////////// Zaurus keys |
439 | case Key_Home: | 439 | case Key_Home: |
440 | break; | 440 | break; |
441 | case Key_F9: //activity | 441 | case Key_F9: //activity |
442 | break; | 442 | break; |
443 | case Key_F10: //contacts | 443 | case Key_F10: //contacts |
444 | // hide(); | 444 | // hide(); |
445 | break; | 445 | break; |
446 | case Key_F11: //menu | 446 | case Key_F11: //menu |
447 | break; | 447 | break; |
448 | case Key_F12: //home | 448 | case Key_F12: //home |
449 | break; | 449 | break; |
450 | case Key_F13: //mail | 450 | case Key_F13: //mail |
451 | break; | 451 | break; |
452 | case Key_Space: { | 452 | case Key_Space: { |
453 | if(mediaPlayerState->playing()) { | 453 | if(mediaPlayerState->playing()) { |
454 | mediaPlayerState->setPlaying(FALSE); | 454 | mediaPlayerState->setPlaying(FALSE); |
455 | } else { | 455 | } else { |
456 | mediaPlayerState->setPlaying(TRUE); | 456 | mediaPlayerState->setPlaying(TRUE); |
457 | } | 457 | } |
458 | } | 458 | } |
459 | break; | 459 | break; |
460 | case Key_Down: | 460 | case Key_Down: |
461 | // toggleButton(6); | 461 | // toggleButton(6); |
462 | emit lessClicked(); | 462 | emit lessClicked(); |
463 | emit lessReleased(); | 463 | emit lessReleased(); |
464 | // toggleButton(6); | 464 | // toggleButton(6); |
465 | break; | 465 | break; |
466 | case Key_Up: | 466 | case Key_Up: |
467 | // toggleButton(5); | 467 | // toggleButton(5); |
468 | emit moreClicked(); | 468 | emit moreClicked(); |
469 | emit moreReleased(); | 469 | emit moreReleased(); |
470 | // toggleButton(5); | 470 | // toggleButton(5); |
471 | break; | 471 | break; |
472 | case Key_Right: | 472 | case Key_Right: |
473 | mediaPlayerState->setNext(); | 473 | mediaPlayerState->setNext(); |
474 | break; | 474 | break; |
475 | case Key_Left: | 475 | case Key_Left: |
476 | mediaPlayerState->setPrev(); | 476 | mediaPlayerState->setPrev(); |
477 | break; | 477 | break; |
478 | case Key_Escape: | 478 | case Key_Escape: |
479 | #if defined(QT_QWS_IPAQ) | ||
480 | if( mediaPlayerState->isPaused ) { | ||
481 | setToggleButton( i, FALSE ); | ||
482 | mediaPlayerState->setPaused( FALSE ); | ||
483 | } else if( !mediaPlayerState->isPaused ) { | ||
484 | setToggleButton( i, TRUE ); | ||
485 | mediaPlayerState->setPaused( TRUE ); | ||
486 | } | ||
487 | #endif | ||
488 | break; | 479 | break; |
489 | 480 | ||
490 | }; | 481 | }; |
491 | } | 482 | } |
492 | 483 | ||
493 | XineVideoWidget* VideoWidget::vidWidget() { | 484 | XineVideoWidget* VideoWidget::vidWidget() { |
494 | return videoFrame; | 485 | return videoFrame; |
495 | } | 486 | } |
496 | 487 | ||
497 | 488 | ||
498 | void VideoWidget::setFullscreen ( bool b ) { | 489 | void VideoWidget::setFullscreen ( bool b ) { |
499 | setToggleButton( VideoFullscreen, b ); | 490 | setToggleButton( VideoFullscreen, b ); |
500 | } | 491 | } |
501 | 492 | ||
502 | 493 | ||
503 | void VideoWidget::setPlaying( bool b) { | 494 | void VideoWidget::setPlaying( bool b) { |
504 | setToggleButton( VideoPlay, b ); | 495 | setToggleButton( VideoPlay, b ); |
505 | } | 496 | } |
506 | 497 | ||