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:
dt
2010-04-30 13:19:31 +02:00
parent 4532087c90
commit f4ea0d79b9
16 changed files with 55 additions and 39 deletions

View File

@@ -80,7 +80,7 @@ public:
ProjectExplorer::RunControl* create(ProjectExplorer::RunConfiguration *runConfiguration, const QString &mode) {
RunConfiguration *rc = qobject_cast<RunConfiguration *>(runConfiguration);
QTC_ASSERT(rc && mode == m_mode, return 0);
return new RunControl(rc);
return new RunControl(rc, mode);
}
QString displayName() const {