JsonFilePage: Take InitialPath and InitialFileName for initialization

... during initializePage. This allows the JsonWizard to change the default
file name based on secetions on earlier pages.

Change-Id: I8569c23958339782ea21d56b54208812f6fa608e
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
Tobias Hunger
2014-10-13 15:41:15 +02:00
parent 37f9cabf2d
commit 7e31b68596
4 changed files with 18 additions and 3 deletions

View File

@@ -102,11 +102,11 @@ FilePageFactory::FilePageFactory()
Utils::WizardPage *FilePageFactory::create(JsonWizard *wizard, Core::Id typeId, const QVariant &data)
{
Q_UNUSED(wizard);
Q_UNUSED(data);
QTC_ASSERT(canCreate(typeId), return 0);
JsonFilePage *page = new JsonFilePage;
page->setPath(wizard->value(QStringLiteral("InitialPath")).toString());
return page;
}