stateproviders/ftustateprovider/src/ftuwizardactivatedstate.cpp
changeset 12 624e91e1e029
parent 7 446dc0e90e84
child 14 88ff81299c11
equal deleted inserted replaced
11:96bf8c13fa72 12:624e91e1e029
    17 
    17 
    18 
    18 
    19 #include "ftuwizardactivatedstate.h"
    19 #include "ftuwizardactivatedstate.h"
    20 #include "fturuntimeservices_global.h"
    20 #include "fturuntimeservices_global.h"
    21 #include "ftucontentservice.h"
    21 #include "ftucontentservice.h"
       
    22 #include "ftustateprovider_global.h"
    22 #include <ftuwizard.h>
    23 #include <ftuwizard.h>
    23 
    24 
    24 #include <hbmainwindow.h>
    25 #include <hbmainwindow.h>
    25 #include <hbdocumentloader.h>
    26 #include <hbdocumentloader.h>
    26 #include <hbview.h>
    27 #include <hbview.h>
   111 // FtuWizardActivatedState::onEntry
   112 // FtuWizardActivatedState::onEntry
   112 // ---------------------------------------------------------------------------
   113 // ---------------------------------------------------------------------------
   113 //
   114 //
   114 void FtuWizardActivatedState::onEntry(QEvent *event)
   115 void FtuWizardActivatedState::onEntry(QEvent *event)
   115 {
   116 {
   116     qDebug() << "ftu:FtuWizardActivatedState::onEntry";
   117     QDEBUG("ftu:FtuWizardActivatedState::onEntry";)
   117     QState::onEntry(event);    
   118     QState::onEntry(event);    
   118 
   119 
   119     int activeIndex = content()->activeWizard();
   120     int activeIndex = content()->activeWizard();
   120     mActiveWizard = content()->wizard(activeIndex);
   121     mActiveWizard = content()->wizard(activeIndex);
   121     
   122     
   256                 mWizardStackedWidget->addWidget(viewWidget);
   257                 mWizardStackedWidget->addWidget(viewWidget);
   257             }
   258             }
   258             // set wizard's widget as current widget
   259             // set wizard's widget as current widget
   259             mWizardStackedWidget->setCurrentWidget(viewWidget);
   260             mWizardStackedWidget->setCurrentWidget(viewWidget);
   260             
   261             
   261             qDebug() << "Ftu: switching view due plugin view change";
   262             QDEBUG("Ftu: switching view due plugin view change";)
   262             mainWindow()->setCurrentView(mPluginView, true);
   263             mainWindow()->setCurrentView(mPluginView, true);
   263             
   264             
   264             QList<FtuWizard*> wizards = content()->wizards();
   265             QList<FtuWizard*> wizards = content()->wizards();
   265             // get index of active wizard
   266             // get index of active wizard
   266             int index = wizards.indexOf(mActiveWizard);
   267             int index = wizards.indexOf(mActiveWizard);