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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user