Commit a014c02c authored by Alessandro Portale's avatar Alessandro Portale
Browse files

Reenabling the run/build configuration sync dialog for Maemo

MaemoRunConfiguration reimplements the correct

Reviewed-by: con
Reviewed-by: dt
parent 986559d2
...@@ -307,9 +307,9 @@ Qt4Project *MaemoRunConfiguration::project() const ...@@ -307,9 +307,9 @@ Qt4Project *MaemoRunConfiguration::project() const
return pro; return pro;
} }
bool MaemoRunConfiguration::isEnabled() const bool MaemoRunConfiguration::isEnabled(ProjectExplorer::BuildConfiguration *config) const
{ {
Qt4BuildConfiguration *qt4bc = project()->activeQt4BuildConfiguration(); Qt4BuildConfiguration *qt4bc = qobject_cast<Qt4BuildConfiguration*>(config);
QTC_ASSERT(qt4bc, return false); QTC_ASSERT(qt4bc, return false);
ToolChain::ToolChainType type = qt4bc->toolChainType(); ToolChain::ToolChainType type = qt4bc->toolChainType();
return type == ToolChain::GCC_MAEMO; return type == ToolChain::GCC_MAEMO;
...@@ -71,7 +71,8 @@ public: ...@@ -71,7 +71,8 @@ public:
~MaemoRunConfiguration(); ~MaemoRunConfiguration();
QString type() const; QString type() const;
bool isEnabled() const; bool isEnabled(ProjectExplorer::BuildConfiguration *config) const;
using RunConfiguration::isEnabled;
QWidget *configurationWidget(); QWidget *configurationWidget();
Qt4Project *project() const; Qt4Project *project() const;
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