equal
deleted
inserted
replaced
31 #include "hsmenuitemmodel.h" |
31 #include "hsmenuitemmodel.h" |
32 #include "cadefs.h" |
32 #include "cadefs.h" |
33 #include "hsallcollectionsstate.h" |
33 #include "hsallcollectionsstate.h" |
34 #include "hsaddappstocollectionstate.h" |
34 #include "hsaddappstocollectionstate.h" |
35 #include "hsmenumodetransition.h" |
35 #include "hsmenumodetransition.h" |
|
36 #include "hsmainwindow.h" |
36 |
37 |
37 /*! |
38 /*! |
38 \class HsAllCollectionsState |
39 \class HsAllCollectionsState |
39 \ingroup group_hsmenustateplugin |
40 \ingroup group_hsmenustateplugin |
40 \brief All Collections State. |
41 \brief All Collections State. |
72 \param parent Owner. |
73 \param parent Owner. |
73 */ |
74 */ |
74 HsAllCollectionsState::HsAllCollectionsState( |
75 HsAllCollectionsState::HsAllCollectionsState( |
75 HsMenuViewBuilder &menuViewBuilder, |
76 HsMenuViewBuilder &menuViewBuilder, |
76 HsMenuModeWrapper &menuMode, |
77 HsMenuModeWrapper &menuMode, |
|
78 HsMainWindow &mainWindow, |
77 QState *parent): |
79 QState *parent): |
78 QState(parent), |
80 QState(parent), |
79 mSortAttribute(CustomHsSortAttribute), |
81 mSortAttribute(CustomHsSortAttribute), |
80 mMenuView(menuViewBuilder, HsAllCollectionsContext), |
82 mMenuView(menuViewBuilder, HsAllCollectionsContext), |
81 mMenuMode(menuMode), |
83 mMenuMode(menuMode), |
82 mAllCollectionsModel(0), mContextModelIndex(), mContextMenu(0) |
84 mAllCollectionsModel(0), |
|
85 mMainWindow(mainWindow), |
|
86 mContextModelIndex(), mContextMenu(0) |
83 { |
87 { |
84 construct(); |
88 construct(); |
85 } |
89 } |
86 |
90 |
87 /*! |
91 /*! |
212 void HsAllCollectionsState::stateEntered() |
216 void HsAllCollectionsState::stateEntered() |
213 { |
217 { |
214 qDebug("AllCollectionsState::stateEntered()"); |
218 qDebug("AllCollectionsState::stateEntered()"); |
215 HSMENUTEST_FUNC_ENTRY("HsAllCollectionsState::stateEntered"); |
219 HSMENUTEST_FUNC_ENTRY("HsAllCollectionsState::stateEntered"); |
216 |
220 |
|
221 mMainWindow.setCurrentView(mMenuView); |
217 mMenuView.activate(); |
222 mMenuView.activate(); |
218 |
223 |
219 HSMENUTEST_FUNC_EXIT("HsAllCollectionsState::stateExited"); |
224 HSMENUTEST_FUNC_EXIT("HsAllCollectionsState::stateExited"); |
220 } |
225 } |
221 |
226 |