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

@@ -39,10 +39,11 @@ class QmlProjectRunConfiguration;
namespace Internal {
class QmlRunControl : public ProjectExplorer::RunControl {
class QmlRunControl : public ProjectExplorer::RunControl
{
Q_OBJECT
public:
explicit QmlRunControl(QmlProjectRunConfiguration *runConfiguration, bool debugMode);
explicit QmlRunControl(QmlProjectRunConfiguration *runConfiguration, QString mode);
virtual ~QmlRunControl ();
// RunControl
@@ -63,7 +64,6 @@ private:
QString m_executable;
QStringList m_commandLineArguments;
bool m_debugMode;
};
class QmlRunControlFactory : public ProjectExplorer::IRunControlFactory {