forked from qt-creator/qt-creator
JsonWizard: Add separate method to get stringified values
Have value(...) return a QVariant that is never mangeled and add a stringValue(...) method to retrieve stringified values. It is way easier to see who needs what now. Use this consistently in the JsonWizard and fix one place where a QVariant was expected but a stringified version was returned. Task-number: QTCREATORBUG-13486 Change-Id: I2c4e9188280940e529f0f60bcc18b9b7330865d1 Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
This commit is contained in:
@@ -57,7 +57,7 @@ void JsonKitsPage::initializePage()
|
||||
|
||||
connect(wiz, &JsonWizard::filesReady, this, &JsonKitsPage::setupProjectFiles);
|
||||
|
||||
const QString platform = wiz->value(QLatin1String("Platform")).toString();
|
||||
const QString platform = wiz->stringValue(QLatin1String("Platform"));
|
||||
const Core::FeatureSet preferred = Core::FeatureSet::fromStringList(wiz->value(QLatin1String("PreferredFeatures")).toStringList());
|
||||
const Core::FeatureSet required = Core::FeatureSet::fromStringList(wiz->value(QLatin1String("RequiredFeatures")).toStringList());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user