changeset 48 | af3740e3753f |
parent 41 | ea59c434026a |
child 54 | c5b304f4d89b |
42:79c49924ae23 | 48:af3740e3753f |
---|---|
117 |
117 |
118 //Connect FF and RW buttons when view (toolbar) is ready |
118 //Connect FF and RW buttons when view (toolbar) is ready |
119 connect ( mWindow, SIGNAL( viewReady() ), this, SLOT( connectButtons() ) ); |
119 connect ( mWindow, SIGNAL( viewReady() ), this, SLOT( connectButtons() ) ); |
120 |
120 |
121 if ( mViewMode == MpCommon::DefaultView ) { |
121 if ( mViewMode == MpCommon::DefaultView ) { |
122 mEqualizerWidget = new MpEqualizerWidget(); |
|
123 mEqualizerWidget->prepareDialog(); |
|
124 // Observe changes in settings. |
122 // Observe changes in settings. |
125 connect( MpSettingsManager::instance(), SIGNAL( shuffleChanged( bool ) ), |
123 connect( MpSettingsManager::instance(), SIGNAL( shuffleChanged( bool ) ), |
126 this, SLOT( shuffleChanged( bool ) ) ); |
124 this, SLOT( shuffleChanged( bool ) ) ); |
127 connect( MpSettingsManager::instance(), SIGNAL( repeatChanged( bool ) ), |
125 connect( MpSettingsManager::instance(), SIGNAL( repeatChanged( bool ) ), |
128 this, SLOT( repeatChanged( bool ) ) ); |
126 this, SLOT( repeatChanged( bool ) ) ); |
266 Slot to handle flip action. |
264 Slot to handle flip action. |
267 */ |
265 */ |
268 void MpPlaybackView::flip() |
266 void MpPlaybackView::flip() |
269 { |
267 { |
270 TX_ENTRY |
268 TX_ENTRY |
269 mMpEngine->retrieveSongDetails(); |
|
271 emit command( MpCommon::ActivateDetailsView ); |
270 emit command( MpCommon::ActivateDetailsView ); |
272 TX_EXIT |
271 TX_EXIT |
273 } |
272 } |
274 |
273 |
275 /*! |
274 /*! |
567 Slot to be called to activate equalizer dialog. |
566 Slot to be called to activate equalizer dialog. |
568 */ |
567 */ |
569 void MpPlaybackView::showEqualizerDialog() |
568 void MpPlaybackView::showEqualizerDialog() |
570 { |
569 { |
571 TX_ENTRY |
570 TX_ENTRY |
572 |
571 if ( !mEqualizerWidget ){ |
573 if( mEqualizerWidget ) |
572 mEqualizerWidget = new MpEqualizerWidget(); |
574 { |
573 mEqualizerWidget->prepareDialog(); |
575 mEqualizerWidget->show(); |
574 } |
576 } |
575 |
576 mEqualizerWidget->show(); |
|
577 |
577 |
578 TX_EXIT |
578 TX_EXIT |
579 } |
579 } |
580 |
580 |
581 /*! |
581 /*! |