app/src/mpmainwindow.cpp
changeset 25 3ec52facab4d
parent 22 ecf06a08d4d9
child 29 8192e5b5c935
equal deleted inserted replaced
22:ecf06a08d4d9 25:3ec52facab4d
   135       
   135       
   136         loadView(CollectionView);
   136         loadView(CollectionView);
   137         activateView(CollectionView);
   137         activateView(CollectionView);
   138 
   138 
   139         connect(this, SIGNAL( orientationChanged( Qt::Orientation ) ), SLOT( switchView( Qt::Orientation ) ) );
   139         connect(this, SIGNAL( orientationChanged( Qt::Orientation ) ), SLOT( switchView( Qt::Orientation ) ) );
   140         connect( engine, SIGNAL( libraryRefreshed() ), SLOT( handleLibraryUpdated() ) );
   140         connect( engine, SIGNAL( libraryUpdated() ), SLOT( handleLibraryUpdated() ) );
   141         engine->checkForSystemEvents();
   141         engine->checkForSystemEvents();
   142         loadView( PlaybackView );
   142         loadView( PlaybackView );
   143     }
   143     }
   144     setOrientation(Qt::Vertical, true);//This sould prevent media wall activation.
   144     setOrientation(Qt::Vertical, true);//This sould prevent media wall activation.
   145     TX_EXIT
   145     TX_EXIT
   291             connect(collectionView, SIGNAL(songSelected(QString)), mMusicServices, SLOT(itemSelected(QString)));
   291             connect(collectionView, SIGNAL(songSelected(QString)), mMusicServices, SLOT(itemSelected(QString)));
   292             activateView( CollectionView );           
   292             activateView( CollectionView );           
   293             loadView(PlaybackView, MpCommon::FetchView );
   293             loadView(PlaybackView, MpCommon::FetchView );
   294             MpViewBase* playbackView = reinterpret_cast<MpViewBase*>(mPlaybackViewPlugin->getView());
   294             MpViewBase* playbackView = reinterpret_cast<MpViewBase*>(mPlaybackViewPlugin->getView());
   295             connect(playbackView, SIGNAL(songSelected(QString)), mMusicServices, SLOT(itemSelected(QString)));
   295             connect(playbackView, SIGNAL(songSelected(QString)), mMusicServices, SLOT(itemSelected(QString)));
   296             connect( engine, SIGNAL( libraryRefreshed() ), this, SLOT( handleLibraryUpdated() ) );
   296             connect( engine, SIGNAL( libraryUpdated() ), this, SLOT( handleLibraryUpdated() ) );
   297             engine->checkForSystemEvents();
   297             engine->checkForSystemEvents();
   298             break;
   298             break;
   299         }
   299         }
   300     case MusicServices::EPlayback:
   300     case MusicServices::EPlayback:
   301         {
   301         {