Commit a9b521f8 authored by dt's avatar dt
Browse files

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.
parent cf6ed08c
......@@ -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");
}
......@@ -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");
}
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