forked from qt-creator/qt-creator
Add a runMode method to the RunControl
And use it to implement changing the run icon in the application output. That implementation does only support the two run modes run and debug for now. Further abstraction for more run modes to be done once needed. Task-Nr: QTCREATORBUG-1232
This commit is contained in:
@@ -451,8 +451,8 @@ RunConfiguration *S60DeviceRunConfigurationFactory::clone(Target *parent, RunCon
|
||||
|
||||
// ======== S60DeviceRunControlBase
|
||||
|
||||
S60DeviceRunControlBase::S60DeviceRunControlBase(RunConfiguration *runConfiguration) :
|
||||
RunControl(runConfiguration),
|
||||
S60DeviceRunControlBase::S60DeviceRunControlBase(RunConfiguration *runConfiguration, QString mode) :
|
||||
RunControl(runConfiguration, mode),
|
||||
m_toolChain(ProjectExplorer::ToolChain::INVALID),
|
||||
m_releaseDeviceAfterLauncherFinish(false),
|
||||
m_handleDeviceRemoval(true),
|
||||
@@ -812,8 +812,8 @@ bool S60DeviceRunControlBase::checkConfiguration(QString * /* errorMessage */,
|
||||
|
||||
// =============== S60DeviceRunControl
|
||||
|
||||
S60DeviceRunControl::S60DeviceRunControl(ProjectExplorer::RunConfiguration *runConfiguration) :
|
||||
S60DeviceRunControlBase(runConfiguration)
|
||||
S60DeviceRunControl::S60DeviceRunControl(ProjectExplorer::RunConfiguration *runConfiguration, QString mode) :
|
||||
S60DeviceRunControlBase(runConfiguration, mode)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -849,8 +849,8 @@ void S60DeviceRunControl::printRunFailNotice(const QString &errorMessage) {
|
||||
|
||||
// ======== S60DeviceDebugRunControl
|
||||
|
||||
S60DeviceDebugRunControl::S60DeviceDebugRunControl(S60DeviceRunConfiguration *runConfiguration) :
|
||||
S60DeviceRunControlBase(runConfiguration),
|
||||
S60DeviceDebugRunControl::S60DeviceDebugRunControl(S60DeviceRunConfiguration *runConfiguration, QString mode) :
|
||||
S60DeviceRunControlBase(runConfiguration, mode),
|
||||
m_startParams(new Debugger::DebuggerStartParameters)
|
||||
{
|
||||
setReleaseDeviceAfterLauncherFinish(true); // Debugger controls device after install
|
||||
|
||||
Reference in New Issue
Block a user