equal
deleted
inserted
replaced
19 #include <glxslideshowsettingsstate.h> |
19 #include <glxslideshowsettingsstate.h> |
20 #include <glxstatemanager.h> |
20 #include <glxstatemanager.h> |
21 #include <glxcommandhandlers.hrh> |
21 #include <glxcommandhandlers.hrh> |
22 |
22 |
23 |
23 |
24 GlxSlideShowSettingsState::GlxSlideShowSettingsState(GlxStateManager *stateManager, GlxState *preState ) : GlxState(GLX_SLIDESHOWSETTINGSVIEW_ID, preState) |
24 GlxSlideShowSettingsState::GlxSlideShowSettingsState(GlxStateManager *stateManager, GlxState *preState ) : GlxState( GLX_SLIDESHOWSETTINGSVIEW_ID, preState ) |
25 { |
25 { |
26 if ( preState) |
26 mStateManager = stateManager; |
27 qDebug("GlxSlideShowSettingsState::GlxSlideShowSettingsState() state id = %d", preState->id()); |
|
28 mStateManager = stateManager ; |
|
29 } |
27 } |
30 |
28 |
31 void GlxSlideShowSettingsState::eventHandler(qint32 &id) |
29 void GlxSlideShowSettingsState::eventHandler( qint32 &id ) |
32 { |
30 { |
33 qDebug("GlxSlideShowSettingsState::eventHandler() action id = %d", id); |
31 if ( id == EGlxCmdSelectSlideshow ) { |
34 return; |
32 if ( previousState()->id() == GLX_SLIDESHOWVIEW_ID ) { |
|
33 mStateManager->previousState() ; |
|
34 id = EGlxCmdHandled; |
|
35 } |
|
36 } |
35 } |
37 } |
36 |
38 |