homescreenapp/stateplugins/hsapplibrarystateplugin/src/hsmainwindow.cpp
changeset 69 87476091b3f5
parent 63 52b0f64eeb51
child 71 1db7cc813a4e
equal deleted inserted replaced
67:474929a40a0f 69:87476091b3f5
    49 
    49 
    50 /*!
    50 /*!
    51  Add the \menuView to first instance of HbMainWindow registered in HbInstance.
    51  Add the \menuView to first instance of HbMainWindow registered in HbInstance.
    52  \param view View to be added to HbMainWindow.
    52  \param view View to be added to HbMainWindow.
    53 */
    53 */
    54 void HsMainWindow::setCurrentView(const HsMenuView &menuView)
    54 void HsMainWindow::setCurrentView(HbView *view)
    55 {
    55 {
    56     HbMainWindow *const hbW(
    56     HbMainWindow *const hbW(
    57         HbInstance::instance()->allMainWindows().value(0));
    57         HbInstance::instance()->allMainWindows().value(0));
    58 
       
    59     HbView *const view = menuView.view();
       
    60     
    58     
    61     if (!hbW->views().contains(view)) {
    59     if (!hbW->views().contains(view)) {
    62         hbW->addView(view);
    60         hbW->addView(view);
    63     }
    61     }
    64     hbW->setCurrentView(view);
    62     hbW->setCurrentView(view);