Utils::Wizard: Move hack out of the base class

Implement it instead where it is needed.

Change-Id: If7f76bcfa82705936b555a5ebfc221978c70e106
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2015-09-22 15:52:25 +02:00
parent c0ae81f4f2
commit a561e59a24
4 changed files with 3 additions and 14 deletions

View File

@@ -98,7 +98,6 @@ void BaseProjectWizardDialog::init()
setPage(d->desiredIntroPageId, d->introPage);
}
connect(this, SIGNAL(accepted()), this, SLOT(slotAccepted()));
connect(this, SIGNAL(nextClicked()), this, SLOT(nextClicked()));
}
BaseProjectWizardDialog::~BaseProjectWizardDialog()
@@ -155,10 +154,11 @@ void BaseProjectWizardDialog::slotAccepted()
}
}
void BaseProjectWizardDialog::nextClicked()
bool BaseProjectWizardDialog::validateCurrentPage()
{
if (currentId() == d->introPageId)
emit projectParametersChanged(d->introPage->projectName(), d->introPage->path());
return Core::BaseFileWizard::validateCurrentPage();
}
Utils::ProjectIntroPage *BaseProjectWizardDialog::introPage() const