equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: Implementation of QMPXVideoPlaybackToolBar |
14 * Description: Implementation of QMPXVideoPlaybackToolBar |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // Version : %version: 3 % |
18 // Version : %version: 4 % |
19 |
19 |
20 |
20 |
21 |
21 |
22 #include <QTimer> |
22 #include <QTimer> |
23 #include <QGraphicsLayout> |
23 #include <QGraphicsLayout> |
498 // |
498 // |
499 mButtonActions[EMPX1stButton]->setIcon( *mButtonIcons[EMPXAttachIcon] ); |
499 mButtonActions[EMPX1stButton]->setIcon( *mButtonIcons[EMPXAttachIcon] ); |
500 |
500 |
501 if ( mButtons.count() ) |
501 if ( mButtons.count() ) |
502 { |
502 { |
503 disconnect( mButtons[EMPX1stButton], SIGNAL( released() ) ); |
503 disconnect( mButtons[EMPX1stButton], SIGNAL( released() ), 0, 0 ); |
504 connect( mButtons[EMPX1stButton], SIGNAL( released() ), |
504 connect( mButtons[EMPX1stButton], SIGNAL( released() ), |
505 mController, SLOT( attachVideo() ) ); |
505 mController, SLOT( attachVideo() ) ); |
506 } |
506 } |
507 } |
507 } |
508 else |
508 else |
537 // |
537 // |
538 mButtonActions[EMPX1stButton]->setEnabled( enabled ); |
538 mButtonActions[EMPX1stButton]->setEnabled( enabled ); |
539 |
539 |
540 if ( mButtons.count() ) |
540 if ( mButtons.count() ) |
541 { |
541 { |
542 disconnect( mButtons[EMPX1stButton], SIGNAL( released() ) ); |
542 disconnect( mButtons[EMPX1stButton], SIGNAL( released() ), 0, 0 ); |
543 connect( mButtons[EMPX1stButton], SIGNAL( released() ), |
543 connect( mButtons[EMPX1stButton], SIGNAL( released() ), |
544 this, SLOT( changeAspectRatio() ) ); |
544 this, SLOT( changeAspectRatio() ) ); |
545 } |
545 } |
546 } |
546 } |
547 } |
547 } |
567 // |
567 // |
568 mButtonActions[EMPX1stButton]->setEnabled( true ); |
568 mButtonActions[EMPX1stButton]->setEnabled( true ); |
569 |
569 |
570 if ( mButtons.count() ) |
570 if ( mButtons.count() ) |
571 { |
571 { |
572 disconnect( mButtons[EMPX1stButton], SIGNAL( released() ) ); |
572 disconnect( mButtons[EMPX1stButton], SIGNAL( released() ), 0, 0 ); |
573 connect( mButtons[EMPX1stButton], SIGNAL( released() ), |
573 connect( mButtons[EMPX1stButton], SIGNAL( released() ), |
574 mController, SLOT( sendVideo() ) ); |
574 mController, SLOT( sendVideo() ) ); |
575 } |
575 } |
576 } |
576 } |
577 } |
577 } |