mpviewplugins/mpplaybackviewplugin/src/mpplaybackview.cpp
changeset 45 612c4815aebe
parent 43 0f32e550d9d8
child 51 560ce2306a17
equal deleted inserted replaced
43:0f32e550d9d8 45:612c4815aebe
   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 ) ) );
   568  Slot to be called to activate equalizer dialog.
   566  Slot to be called to activate equalizer dialog.
   569  */
   567  */
   570 void MpPlaybackView::showEqualizerDialog()
   568 void MpPlaybackView::showEqualizerDialog()
   571 {
   569 {
   572     TX_ENTRY
   570     TX_ENTRY
   573 
   571     if ( !mEqualizerWidget ){
   574     if( mEqualizerWidget )
   572         mEqualizerWidget = new MpEqualizerWidget();
   575     {
   573         mEqualizerWidget->prepareDialog();
   576         mEqualizerWidget->show();
   574     }
   577     }
   575 	
       
   576 	mEqualizerWidget->show();
   578 
   577 
   579     TX_EXIT
   578     TX_EXIT
   580 }
   579 }
   581 
   580 
   582 /*!
   581 /*!