forked from qt-creator/qt-creator
Move Targets page before Summary page in plain C/C++ project wizard
Task-number: QTCREATORBUG-7608 Change-Id: I9ae8758a28140b7cc7594bdb17a7e2e3aa4311f6 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -171,11 +171,11 @@ CustomQt4ProjectWizard::CustomQt4ProjectWizard(const Core::BaseFileWizardParamet
|
||||
{
|
||||
BaseQt4ProjectWizardDialog *wizard = new BaseQt4ProjectWizardDialog(false, parent, wizardDialogParameters);
|
||||
|
||||
initProjectWizardDialog(wizard, wizardDialogParameters.defaultPath(), wizardDialogParameters.extensionPages());
|
||||
if (wizard->pageIds().contains(targetPageId))
|
||||
qWarning("CustomQt4ProjectWizard: Unable to insert target page at %d", int(targetPageId));
|
||||
if (!wizardDialogParameters.extraValues().contains(ProjectExplorer::Constants::PROJECT_PROFILE_IDS))
|
||||
wizard->addTargetSetupPage(false, targetPageId);
|
||||
|
||||
initProjectWizardDialog(wizard, wizardDialogParameters.defaultPath(),
|
||||
wizardDialogParameters.extensionPages());
|
||||
return wizard;
|
||||
}
|
||||
|
||||
@@ -256,7 +256,6 @@ int BaseQt4ProjectWizardDialog::addTargetSetupPage(bool mobile, int id)
|
||||
m_targetSetupPage->setRequiredProfileMatcher(new QtSupport::QtVersionProfileMatcher(requiredFeatures()));
|
||||
|
||||
resize(900, 450);
|
||||
|
||||
if (id >= 0)
|
||||
setPage(id, m_targetSetupPage);
|
||||
else
|
||||
|
||||
@@ -109,7 +109,7 @@ protected:
|
||||
virtual bool postGenerateFiles(const QWizard *, const Core::GeneratedFiles &l, QString *errorMessage);
|
||||
|
||||
private:
|
||||
enum { targetPageId = 2 };
|
||||
enum { targetPageId = 1 };
|
||||
};
|
||||
|
||||
/* BaseQt4ProjectWizardDialog: Additionally offers modules page
|
||||
|
||||
Reference in New Issue
Block a user