Identify tool chains via ToolChain::ToolChainType enum instead of by string

Reviewed-by: dt
This commit is contained in:
Daniel Molkentin
2009-08-13 16:42:17 +02:00
parent d796f75ee0
commit 365560c9c3
5 changed files with 60 additions and 65 deletions

View File

@@ -36,6 +36,7 @@
#include <projectexplorer/project.h>
#include <projectexplorer/projectnodes.h>
#include <projectexplorer/buildstep.h>
#include <projectexplorer/toolchain.h>
#include <coreplugin/ifile.h>
QT_BEGIN_NAMESPACE
@@ -49,10 +50,6 @@ class PathChooser;
}
}
namespace ProjectExplorer {
class ToolChain;
}
namespace GenericProjectManager {
namespace Internal {
@@ -114,10 +111,10 @@ public:
QStringList projectIncludePaths() const;
QStringList files() const;
QStringList generated() const;
QString toolChainId() const;
ProjectExplorer::ToolChain::ToolChainType toolChainId() const;
public Q_SLOTS:
void setToolChainId(const QString &toolChainId);
void setToolChainId(ProjectExplorer::ToolChain::ToolChainType);
protected:
virtual void saveSettingsImpl(ProjectExplorer::PersistentSettingsWriter &writer);
@@ -143,7 +140,7 @@ private:
GenericProjectNode *m_rootNode;
ProjectExplorer::ToolChain *m_toolChain;
QString m_toolChainId;
ProjectExplorer::ToolChain::ToolChainType m_toolChainId;
};
class GenericProjectFile : public Core::IFile