-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 | |||
@@ -415,92 +415,83 @@ void VideoWidget::paintEvent( QPaintEvent * pe) { | |||
415 | for ( int i = 0; i < numVButtons; i++ ) { | 415 | for ( int i = 0; i < numVButtons; i++ ) { |
416 | paintButton( &p, i ); | 416 | paintButton( &p, i ); |
417 | } | 417 | } |
418 | QPainter p2( this ); | 418 | QPainter p2( this ); |
419 | p2.drawPixmap( pe->rect().topLeft(), pix ); | 419 | p2.drawPixmap( pe->rect().topLeft(), pix ); |
420 | } else { | 420 | } else { |
421 | QPainter p( this ); | 421 | QPainter p( this ); |
422 | for ( int i = 0; i < numVButtons; i++ ) | 422 | for ( int i = 0; i < numVButtons; i++ ) |
423 | paintButton( &p, i ); | 423 | paintButton( &p, i ); |
424 | } | 424 | } |
425 | slider->repaint( TRUE ); | 425 | slider->repaint( TRUE ); |
426 | } | 426 | } |
427 | } | 427 | } |
428 | 428 | ||
429 | 429 | ||
430 | void VideoWidget::closeEvent( QCloseEvent* ) { | 430 | 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 | ||