homescreenapp/stateplugins/hsapplibrarystateplugin/src/hsallcollectionsstate.cpp
changeset 51 4785f57bf3d4
parent 46 23b5d6a29cce
child 55 03646e8da489
--- a/homescreenapp/stateplugins/hsapplibrarystateplugin/src/hsallcollectionsstate.cpp	Fri May 14 15:43:04 2010 +0300
+++ b/homescreenapp/stateplugins/hsapplibrarystateplugin/src/hsallcollectionsstate.cpp	Thu May 27 12:46:08 2010 +0300
@@ -33,6 +33,7 @@
 #include "hsallcollectionsstate.h"
 #include "hsaddappstocollectionstate.h"
 #include "hsmenumodetransition.h"
+#include "hsmainwindow.h"
 
 /*!
  \class HsAllCollectionsState
@@ -74,12 +75,15 @@
 HsAllCollectionsState::HsAllCollectionsState(
     HsMenuViewBuilder &menuViewBuilder,
     HsMenuModeWrapper &menuMode,
+    HsMainWindow &mainWindow,
     QState *parent):
     QState(parent),
     mSortAttribute(CustomHsSortAttribute),
     mMenuView(menuViewBuilder, HsAllCollectionsContext),
     mMenuMode(menuMode),
-    mAllCollectionsModel(0), mContextModelIndex(), mContextMenu(0)
+    mAllCollectionsModel(0),
+    mMainWindow(mainWindow),
+    mContextModelIndex(), mContextMenu(0)
 {
     construct();
 }
@@ -214,6 +218,7 @@
     qDebug("AllCollectionsState::stateEntered()");
     HSMENUTEST_FUNC_ENTRY("HsAllCollectionsState::stateEntered");
 
+    mMainWindow.setCurrentView(mMenuView);
     mMenuView.activate();
 
     HSMENUTEST_FUNC_EXIT("HsAllCollectionsState::stateExited");