ProjectExplorer: Add a setting for low build priority

Default is false.

Task-number: QTCREATORBUG-23048
Change-Id: I0f0cc787229456aad2ddf47e4ef37bad58af2038
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Orgad Shaneh
2019-10-07 14:29:03 +03:00
committed by Orgad Shaneh
parent 2a8a39f12b
commit 92c067ba36
9 changed files with 29 additions and 6 deletions

View File

@@ -30,6 +30,8 @@
#include "ioutputparser.h"
#include "processparameters.h"
#include "project.h"
#include "projectexplorer.h"
#include "projectexplorersettings.h"
#include "target.h"
#include "task.h"
@@ -249,9 +251,10 @@ void AbstractProcessStep::doRun()
processStarted();
}
void AbstractProcessStep::setLowPriority()
void AbstractProcessStep::setLowPriorityIfConfigured()
{
d->m_lowPriority = true;
if (ProjectExplorerPlugin::projectExplorerSettings().lowBuildPriority)
d->m_lowPriority = true;
}
void AbstractProcessStep::doCancel()