summaryrefslogtreecommitdiff
path: root/src/plugins/qt4projectmanager/wizards/abstractmobileappwizard.cpp
diff options
context:
space:
mode:
authorJarek Kobus <jkobus@trolltech.com>2011-08-02 16:36:11 +0200
committerJarek Kobus <jaroslaw.kobus@nokia.com>2011-08-04 16:33:24 +0200
commiteb57d1de39397079cb655aea519dbe7543820efa (patch)
treee83771c32bee62f38bb6e015b949658142eabfc7 /src/plugins/qt4projectmanager/wizards/abstractmobileappwizard.cpp
parent5e8843846aae3aa8081951ecb760dd2e1f77eaa6 (diff)
downloadqt-creator-eb57d1de39397079cb655aea519dbe7543820efa.tar.gz
Fix the order of mobile wizards' items
Task-number: QTCREATORBUG-5706 Change-Id: Iaaa5d7ccdb2948bc4ef2ae234ade8e769e22737a Reviewed-on: http://codereview.qt.nokia.com/2520 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Diffstat (limited to 'src/plugins/qt4projectmanager/wizards/abstractmobileappwizard.cpp')
-rw-r--r--src/plugins/qt4projectmanager/wizards/abstractmobileappwizard.cpp20
1 files changed, 7 insertions, 13 deletions
diff --git a/src/plugins/qt4projectmanager/wizards/abstractmobileappwizard.cpp b/src/plugins/qt4projectmanager/wizards/abstractmobileappwizard.cpp
index 55f9c6ddee..8fb4217fe5 100644
--- a/src/plugins/qt4projectmanager/wizards/abstractmobileappwizard.cpp
+++ b/src/plugins/qt4projectmanager/wizards/abstractmobileappwizard.cpp
@@ -93,8 +93,7 @@ void AbstractMobileAppWizardDialog::addMobilePages()
m_maemoItem = wizardProgress()->item(m_maemoOptionsPageId);
m_harmattanItem = wizardProgress()->item(m_harmattanOptionsPageId);
- m_genericItem->setNextShownItem(0);
- m_symbianItem->setNextShownItem(0);
+ m_targetItem->setNextShownItem(0);
}
TargetSetupPage *AbstractMobileAppWizardDialog::targetsPage() const
@@ -151,12 +150,16 @@ void AbstractMobileAppWizardDialog::initializePage(int id)
{
if (id == startId()) {
m_targetItem->setNextItems(QList<Utils::WizardProgressItem *>()
- << m_genericItem << m_maemoItem << m_harmattanItem << itemOfNextGenericPage());
+ << m_genericItem << m_symbianItem << m_maemoItem << m_harmattanItem << itemOfNextGenericPage());
m_genericItem->setNextItems(QList<Utils::WizardProgressItem *>()
<< m_symbianItem << m_maemoItem);
m_symbianItem->setNextItems(QList<Utils::WizardProgressItem *>()
<< m_maemoItem << m_harmattanItem << itemOfNextGenericPage());
- } else if (id == m_genericOptionsPageId) {
+ m_maemoItem->setNextItems(QList<Utils::WizardProgressItem *>()
+ << m_harmattanItem << itemOfNextGenericPage());
+ } else if (id == m_genericOptionsPageId
+ || id == m_symbianOptionsPageId
+ || id == m_maemoOptionsPageId) {
QList<Utils::WizardProgressItem *> order;
order << m_genericItem;
if (isSymbianTargetSelected())
@@ -173,15 +176,6 @@ void AbstractMobileAppWizardDialog::initializePage(int id)
BaseProjectWizardDialog::initializePage(id);
}
-void AbstractMobileAppWizardDialog::cleanupPage(int id)
-{
- if (id == m_genericOptionsPageId) {
- m_genericItem->setNextShownItem(0);
- m_symbianItem->setNextShownItem(0);
- }
- BaseProjectWizardDialog::cleanupPage(id);
-}
-
void AbstractMobileAppWizardDialog::setIgnoreGenericOptionsPage(bool ignore)
{
m_ignoreGeneralOptions = ignore;