forked from qt-creator/qt-creator
Core/Utils: Migrate further to Utils::Id
The coreplugin/id.h header is kept for downstream for now. Change-Id: I8c44590f7b988b3770ecdc177c40783e12353e66 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -52,7 +52,7 @@ FormPageFactory::FormPageFactory()
|
||||
setTypeIdsSuffix("Form");
|
||||
}
|
||||
|
||||
Utils::WizardPage *FormPageFactory::create(ProjectExplorer::JsonWizard *wizard, Core::Id typeId,
|
||||
Utils::WizardPage *FormPageFactory::create(ProjectExplorer::JsonWizard *wizard, Utils::Id typeId,
|
||||
const QVariant &data)
|
||||
{
|
||||
Q_UNUSED(wizard)
|
||||
@@ -63,7 +63,7 @@ Utils::WizardPage *FormPageFactory::create(ProjectExplorer::JsonWizard *wizard,
|
||||
return new FormTemplateWizardPage;
|
||||
}
|
||||
|
||||
bool FormPageFactory::validateData(Core::Id typeId, const QVariant &data, QString *errorMessage)
|
||||
bool FormPageFactory::validateData(Utils::Id typeId, const QVariant &data, QString *errorMessage)
|
||||
{
|
||||
QTC_ASSERT(canCreate(typeId), return false);
|
||||
if (!data.isNull() && (data.type() != QVariant::Map || !data.toMap().isEmpty())) {
|
||||
|
||||
Reference in New Issue
Block a user