summaryrefslogtreecommitdiff
authorharlekin <harlekin>2002-09-04 13:05:47 (UTC)
committer harlekin <harlekin>2002-09-04 13:05:47 (UTC)
commit41a5097ec65c57935aa4425e7e969be9ca591fba (patch) (unidiff)
tree0988e9b474e7ac50068e10f9c4ec3d85e4a75ef8
parent04da91b7a4451366cb005c1e2bb4f649283cc7f9 (diff)
downloadopie-41a5097ec65c57935aa4425e7e969be9ca591fba.zip
opie-41a5097ec65c57935aa4425e7e969be9ca591fba.tar.gz
opie-41a5097ec65c57935aa4425e7e969be9ca591fba.tar.bz2
test
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/audiowidget.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/audiowidget.cpp b/noncore/multimedia/opieplayer2/audiowidget.cpp
index a718826..040e965 100644
--- a/noncore/multimedia/opieplayer2/audiowidget.cpp
+++ b/noncore/multimedia/opieplayer2/audiowidget.cpp
@@ -515,78 +515,81 @@ void AudioWidget::paintEvent( QPaintEvent * pe) {
515 paintButton( &p, i ); 515 paintButton( &p, i );
516 QPainter p2( this ); 516 QPainter p2( this );
517 p2.drawPixmap( pe->rect().topLeft(), pix ); 517 p2.drawPixmap( pe->rect().topLeft(), pix );
518 } else { 518 } else {
519 QPainter p( this ); 519 QPainter p( this );
520 for ( int i = 0; i < numButtons; i++ ) 520 for ( int i = 0; i < numButtons; i++ )
521 paintButton( &p, i ); 521 paintButton( &p, i );
522 } 522 }
523} 523}
524 524
525void AudioWidget::keyReleaseEvent( QKeyEvent *e) { 525void AudioWidget::keyReleaseEvent( QKeyEvent *e) {
526 switch ( e->key() ) { 526 switch ( e->key() ) {
527 ////////////////////////////// Zaurus keys 527 ////////////////////////////// Zaurus keys
528 case Key_Home: 528 case Key_Home:
529 break; 529 break;
530 case Key_F9: //activity 530 case Key_F9: //activity
531 hide(); 531 hide();
532 // qDebug("Audio F9"); 532 // qDebug("Audio F9");
533 break; 533 break;
534 case Key_F10: //contacts 534 case Key_F10: //contacts
535 break; 535 break;
536 case Key_F11: //menu 536 case Key_F11: //menu
537 mediaPlayerState->toggleBlank(); 537 mediaPlayerState->toggleBlank();
538 break; 538 break;
539 case Key_F12: //home 539 case Key_F12: //home
540 break; 540 break;
541 case Key_F13: //mail 541 case Key_F13: //mail
542 mediaPlayerState->toggleBlank(); 542 mediaPlayerState->toggleBlank();
543 break; 543 break;
544 case Key_Space: { 544 case Key_Space: {
545 if(mediaPlayerState->playing()) { 545 if(mediaPlayerState->playing()) {
546 // toggleButton(1); 546 // toggleButton(1);
547 mediaPlayerState->setPlaying(FALSE); 547 mediaPlayerState->setPlaying(FALSE);
548 // toggleButton(1); 548 // toggleButton(1);
549 } else { 549 } else {
550 // toggleButton(0); 550 // toggleButton(0);
551 mediaPlayerState->setPlaying(TRUE); 551 mediaPlayerState->setPlaying(TRUE);
552 // toggleButton(0); 552 // toggleButton(0);
553 } 553 }
554 } 554 }
555 break; 555 break;
556 case Key_Down: 556 case Key_Down:
557 // toggleButton(6); 557 // toggleButton(6);
558 emit lessClicked(); 558 emit lessClicked();
559 emit lessReleased(); 559 emit lessReleased();
560 // toggleButton(6); 560 // toggleButton(6);
561 break; 561 break;
562 case Key_Up: 562 case Key_Up:
563 // toggleButton(5); 563 // toggleButton(5);
564 emit moreClicked(); 564 emit moreClicked();
565 emit moreReleased(); 565 emit moreReleased();
566 // toggleButton(5); 566 // toggleButton(5);
567 break; 567 break;
568 case Key_Right: 568 case Key_Right:
569 // toggleButton(3); 569 // toggleButton(3);
570 mediaPlayerState->setNext(); 570 mediaPlayerState->setNext();
571 // toggleButton(3); 571 // toggleButton(3);
572 break; 572 break;
573 case Key_Left: 573 case Key_Left:
574 // toggleButton(4); 574 // toggleButton(4);
575 mediaPlayerState->setPrev(); 575 mediaPlayerState->setPrev();
576 // toggleButton(4); 576 // toggleButton(4);
577 break; 577 break;
578 case Key_Escape: { 578 case Key_Escape: {
579#if defined(QT_QWS_IPAQ) 579/*
580 * author pleas tell me where the i come from .-)
581 #if defined(QT_QWS_IPAQ)
580 if( mediaPlayerState->isPaused ) { 582 if( mediaPlayerState->isPaused ) {
581 setToggleButton( i, FALSE ); 583 setToggleButton( i, FALSE );
582 mediaPlayerState->setPaused( FALSE ); 584 mediaPlayerState->setPaused( FALSE );
583 } else if( !mediaPlayerState->isPaused ) { 585 } else if( !mediaPlayerState->isPaused ) {
584 setToggleButton( i, TRUE ); 586 setToggleButton( i, TRUE );
585 mediaPlayerState->setPaused( TRUE ); 587 mediaPlayerState->setPaused( TRUE );
586 } 588 }
587#endif 589#endif
590*/
588 } 591 }
589 break; 592 break;
590 593
591 }; 594 };
592} 595}