equal
deleted
inserted
replaced
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); |