forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user