forked from qt-creator/qt-creator
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:
@@ -248,12 +248,14 @@ ProjectExplorer::BuildStep * MakeStepFactory::create(ProjectExplorer::Project *
|
|||||||
|
|
||||||
QStringList MakeStepFactory::canCreateForProject(ProjectExplorer::Project *pro) const
|
QStringList MakeStepFactory::canCreateForProject(ProjectExplorer::Project *pro) const
|
||||||
{
|
{
|
||||||
Q_UNUSED(pro)
|
if (qobject_cast<Qt4Project *>(pro))
|
||||||
return QStringList();
|
return QStringList() << Constants::MAKESTEP;
|
||||||
|
else
|
||||||
|
return QStringList();
|
||||||
}
|
}
|
||||||
|
|
||||||
QString MakeStepFactory::displayNameForName(const QString &name) const
|
QString MakeStepFactory::displayNameForName(const QString &name) const
|
||||||
{
|
{
|
||||||
Q_UNUSED(name)
|
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
|
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();
|
return QStringList();
|
||||||
}
|
}
|
||||||
|
|
||||||
QString QMakeStepFactory::displayNameForName(const QString &name) const
|
QString QMakeStepFactory::displayNameForName(const QString &name) const
|
||||||
{
|
{
|
||||||
Q_UNUSED(name)
|
Q_UNUSED(name);
|
||||||
return QString();
|
return tr("QMake");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user