void JsonFilePage::initializePage() { JsonWizard *wiz = qobject_cast<JsonWizard *>(wizard()); if (!wiz) return; if (fileName().isEmpty()) setFileName(wiz->stringValue(QLatin1String("InitialFileName"))); if (path().isEmpty()) setPath(wiz->stringValue(QLatin1String("InitialPath"))); }
void JsonProjectPage::initializePage() { JsonWizard *wiz = qobject_cast<JsonWizard *>(wizard()); QTC_ASSERT(wiz, return); setPath(wiz->stringValue(QLatin1String("InitialPath"))); setProjectName(uniqueProjectName(path())); }