Make it possible to add the qmakestep and makestep back.

Just one qmakestep is allowed though. But I you can add as many
makesteps as you want.
This commit is contained in:
dt
2009-07-28 16:01:22 +02:00
parent cf6ed08c98
commit a9b521f80a
2 changed files with 10 additions and 6 deletions

View File

@@ -248,12 +248,14 @@ ProjectExplorer::BuildStep * MakeStepFactory::create(ProjectExplorer::Project *
QStringList MakeStepFactory::canCreateForProject(ProjectExplorer::Project *pro) const
{
Q_UNUSED(pro)
return QStringList();
if (qobject_cast<Qt4Project *>(pro))
return QStringList() << Constants::MAKESTEP;
else
return QStringList();
}
QString MakeStepFactory::displayNameForName(const QString &name) const
{
Q_UNUSED(name)
return QString();
return tr("Make");
}

View File

@@ -277,14 +277,16 @@ ProjectExplorer::BuildStep * QMakeStepFactory::create(ProjectExplorer::Project *
QStringList QMakeStepFactory::canCreateForProject(ProjectExplorer::Project *pro) const
{
Q_UNUSED(pro)
Qt4Project *project = qobject_cast<Qt4Project *>(pro);
if (project && !project->qmakeStep())
return QStringList() << Constants::QMAKESTEP;
return QStringList();
}
QString QMakeStepFactory::displayNameForName(const QString &name) const
{
Q_UNUSED(name)
return QString();
Q_UNUSED(name);
return tr("QMake");
}