Commit 591ac2c3 authored by dt's avatar dt
Browse files

Qt4ProjectManager: Fix Qt4RunConfiguration::isEnabled()

Reviewed-By: hunger
parent 060e02a6
...@@ -134,29 +134,7 @@ bool Qt4RunConfiguration::isEnabled(ProjectExplorer::BuildConfiguration *configu ...@@ -134,29 +134,7 @@ bool Qt4RunConfiguration::isEnabled(ProjectExplorer::BuildConfiguration *configu
{ {
if (!m_parseSuccess) if (!m_parseSuccess)
return false; return false;
Qt4BuildConfiguration *qt4bc = qobject_cast<Qt4BuildConfiguration *>(configuration); return true;
QTC_ASSERT(qt4bc, return false);
using namespace ProjectExplorer;
const ToolChainType type = qt4bc->toolChainType();
bool enabled;
switch (type) {
case ProjectExplorer::ToolChain_MSVC: case ProjectExplorer::ToolChain_WINCE:
case ProjectExplorer::ToolChain_GCC: case ProjectExplorer::ToolChain_MinGW:
case ProjectExplorer::ToolChain_GCCE_GNUPOC: case ProjectExplorer::ToolChain_RVCT_ARMV5_GNUPOC:
case ProjectExplorer::ToolChain_OTHER: case ProjectExplorer::ToolChain_UNKNOWN:
case ProjectExplorer::ToolChain_LINUX_ICC:
case ProjectExplorer::ToolChain_INVALID:
enabled = true;
break;
case ProjectExplorer::ToolChain_WINSCW: case ProjectExplorer::ToolChain_GCCE:
case ProjectExplorer::ToolChain_RVCT2_ARMV5: case ProjectExplorer::ToolChain_RVCT2_ARMV6:
case ProjectExplorer::ToolChain_RVCT4_ARMV5: case ProjectExplorer::ToolChain_RVCT4_ARMV6:
case ProjectExplorer::ToolChain_GCC_MAEMO:
enabled = false;
break;
}
return enabled;
} }
void Qt4RunConfiguration::handleParseState(bool success) void Qt4RunConfiguration::handleParseState(bool success)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment