Commit 5173c2dc authored by Tobias Hunger's avatar Tobias Hunger
Browse files

s/target/buildtarget/ in projectnodes

This is in preparation of the addition of "targets" in the sense
of "platforms to develop for" into the codebase.

Reviewed-by: dt
parent a76293b5
......@@ -37,7 +37,7 @@ CMakeProjectNode::CMakeProjectNode(const QString &fileName)
{
}
bool CMakeProjectNode::hasTargets() const
bool CMakeProjectNode::hasBuildTargets() const
{
// TODO
return true;
......
......@@ -41,7 +41,7 @@ class CMakeProjectNode : public ProjectExplorer::ProjectNode
friend class CMakeProject;
public:
CMakeProjectNode(const QString &fileName);
virtual bool hasTargets() const;
virtual bool hasBuildTargets() const;
virtual QList<ProjectExplorer::ProjectNode::ProjectAction> supportedActions() const;
virtual bool addSubProjects(const QStringList &proFilePaths);
virtual bool removeSubProjects(const QStringList &proFilePaths);
......
......@@ -162,7 +162,7 @@ ProjectExplorer::FolderNode *GenericProjectNode::findOrCreateFolderByName(const
return findOrCreateFolderByName(components, components.length());
}
bool GenericProjectNode::hasTargets() const
bool GenericProjectNode::hasBuildTargets() const
{
return true;
}
......
......@@ -53,7 +53,7 @@ public:
Core::IFile *projectFile() const;
QString projectFilePath() const;
virtual bool hasTargets() const;
virtual bool hasBuildTargets() const;
virtual QList<ProjectExplorer::ProjectNode::ProjectAction> supportedActions() const;
......
......@@ -481,7 +481,7 @@ bool FlatModel::filter(Node *node) const
isHidden = false;
} else if (ProjectNode *projectNode = qobject_cast<ProjectNode*>(node)) {
if (m_filterProjects && projectNode->parentFolderNode() != m_rootNode)
isHidden = !projectNode->hasTargets();
isHidden = !projectNode->hasBuildTargets();
} else if (node->nodeType() == FolderNodeType) {
if (m_filterProjects)
isHidden = true;
......
......@@ -167,7 +167,7 @@ public:
// determines if the project will be shown in the flat view
// TODO find a better name
virtual bool hasTargets() const = 0;
virtual bool hasBuildTargets() const = 0;
virtual QList<ProjectAction> supportedActions() const = 0;
......
......@@ -157,7 +157,7 @@ ProjectExplorer::FolderNode *QmlProjectNode::findOrCreateFolderByName(const QStr
return findOrCreateFolderByName(components, components.length());
}
bool QmlProjectNode::hasTargets() const
bool QmlProjectNode::hasBuildTargets() const
{
return true;
}
......
......@@ -54,7 +54,7 @@ public:
Core::IFile *projectFile() const;
QString projectFilePath() const;
virtual bool hasTargets() const;
virtual bool hasBuildTargets() const;
virtual QList<ProjectExplorer::ProjectNode::ProjectAction> supportedActions() const;
......
......@@ -783,7 +783,7 @@ void Qt4ProFileNode::buildStateChanged(ProjectExplorer::Project *project)
}
}
bool Qt4ProFileNode::hasTargets() const
bool Qt4ProFileNode::hasBuildTargets() const
{
return (projectType() == ApplicationTemplate) || (projectType() == LibraryTemplate);
}
......
......@@ -140,7 +140,7 @@ public:
// ProjectNode interface
QList<ProjectAction> supportedActions() const;
bool hasTargets() const { return false; }
bool hasBuildTargets() const { return false; }
bool addSubProjects(const QStringList &proFilePaths);
bool removeSubProjects(const QStringList &proFilePaths);
......@@ -203,7 +203,7 @@ public:
QObject *parent = 0);
~Qt4ProFileNode();
bool hasTargets() const;
bool hasBuildTargets() const;
Qt4ProjectType projectType() 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