Commit 7d926b47 authored by dt's avatar dt
Browse files

Fix Qt4TargetFactory to claim the correct target ids.

Reviewed-By: hunger
parent 9231bf2a
...@@ -112,7 +112,15 @@ QStringList Qt4TargetFactory::availableCreationIds(ProjectExplorer::Project *par ...@@ -112,7 +112,15 @@ QStringList Qt4TargetFactory::availableCreationIds(ProjectExplorer::Project *par
if (!qobject_cast<Qt4Project *>(parent)) if (!qobject_cast<Qt4Project *>(parent))
return QStringList(); return QStringList();
return parent->possibleTargetIds().toList(); QSet<QString> ids;
ids << QLatin1String("Qt4ProjectManager.Target.DesktopTarget")
<< QLatin1String("Qt4ProjectManager.Target.S60EmulatorTarget")
<< QLatin1String("Qt4ProjectManager.Target.S60DeviceTarget")
<< QLatin1String("Qt4ProjectManager.Target.MaemoDeviceTarget")
<< QLatin1String("Qt4ProjectManager.Target.QtSimulatorTarget");
return parent->possibleTargetIds().intersect(ids).toList();
} }
QString Qt4TargetFactory::displayNameForId(const QString &id) const QString Qt4TargetFactory::displayNameForId(const QString &id) const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment