forked from qt-creator/qt-creator
Refactor deployment
* Add a DeployConfiguration class to hold settings related to deployment. * Add BuildStepsList to hold a list of buildsteps * Update BuildConfiguration to use BuildStepLists instead of manageing lists of buildsteps itself. * Update BuildManager to use BuildStepLists in its interfaces * Fix fallout introduced by API changes * Update .user file to new way of storing settings Task-number: QTCREATORBUG-1427 Task-number: QTCREATORBUG-1428 Task-number: QTCREATORBUG-1811 Task-number: QTCREATORBUG-1930
This commit is contained in:
@@ -298,13 +298,15 @@ void Qt4Manager::handleSubDirContexMenu(Qt4Manager::Action action)
|
||||
bc->setSubNodeBuild(profile);
|
||||
|
||||
if (projectExplorer()->saveModifiedFiles()) {
|
||||
if (action == BUILD)
|
||||
projectExplorer()->buildManager()->buildProject(bc);
|
||||
else if (action == CLEAN)
|
||||
projectExplorer()->buildManager()->cleanProject(bc);
|
||||
else if (action == REBUILD) {
|
||||
projectExplorer()->buildManager()->cleanProject(bc);
|
||||
projectExplorer()->buildManager()->buildProject(bc);
|
||||
if (action == BUILD) {
|
||||
projectExplorer()->buildManager()->buildList(bc->stepList(ProjectExplorer::Constants::BUILDSTEPS_BUILD));
|
||||
} else if (action == CLEAN) {
|
||||
projectExplorer()->buildManager()->buildList(bc->stepList(ProjectExplorer::Constants::BUILDSTEPS_CLEAN));
|
||||
} else if (action == REBUILD) {
|
||||
QList<ProjectExplorer::BuildStepList *> stepLists;
|
||||
stepLists << bc->stepList(ProjectExplorer::Constants::BUILDSTEPS_CLEAN);
|
||||
stepLists << bc->stepList(ProjectExplorer::Constants::BUILDSTEPS_BUILD);
|
||||
projectExplorer()->buildManager()->buildLists(stepLists);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user