Separate active run config setting in project mode.

And add a sort of isEnabled functionality for run configs.
This doesn't do much yet though, and is not updated correctly either.
This commit is contained in:
con
2009-06-12 12:58:02 +02:00
parent ec14d436f6
commit a9bb3a03df
6 changed files with 74 additions and 23 deletions

View File

@@ -91,6 +91,17 @@ QString Qt4RunConfiguration::type() const
return "Qt4ProjectManager.Qt4RunConfiguration";
}
bool Qt4RunConfiguration::isEnabled() const
{
#ifdef QTCREATOR_WITH_S60
Qt4Project *pro = qobject_cast<Qt4Project*>(project());
QTC_ASSERT(pro, return false);
ProjectExplorer::ToolChain::ToolChainType type = pro->toolChainType(pro->activeBuildConfiguration());
return type != ProjectExplorer::ToolChain::WINSCW && type != ProjectExplorer::ToolChain::GCCE;
#else
return true;
#endif
}
//////
/// Qt4RunConfigurationWidget