forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user