forked from qt-creator/qt-creator
ProjectNode: Provide default implementations of a few functions
Since a lot of derived classes can make use of those. Change-Id: I051542e8d318476348d753de4d4c0a30b3a9ed62 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -49,48 +49,3 @@ QList<ProjectExplorer::ProjectAction> CMakeProjectNode::supportedActions(Node *n
|
||||
Q_UNUSED(node);
|
||||
return QList<ProjectExplorer::ProjectAction>();
|
||||
}
|
||||
|
||||
bool CMakeProjectNode::canAddSubProject(const QString &proFilePath) const
|
||||
{
|
||||
Q_UNUSED(proFilePath)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CMakeProjectNode::addSubProjects(const QStringList &proFilePaths)
|
||||
{
|
||||
Q_UNUSED(proFilePaths)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CMakeProjectNode::removeSubProjects(const QStringList &proFilePaths)
|
||||
{
|
||||
Q_UNUSED(proFilePaths)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CMakeProjectNode::addFiles(const QStringList &filePaths, QStringList *notAdded)
|
||||
{
|
||||
Q_UNUSED(filePaths)
|
||||
Q_UNUSED(notAdded)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CMakeProjectNode::removeFiles(const QStringList &filePaths, QStringList *notRemoved)
|
||||
{
|
||||
Q_UNUSED(filePaths)
|
||||
Q_UNUSED(notRemoved)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CMakeProjectNode::deleteFiles(const QStringList &filePaths)
|
||||
{
|
||||
Q_UNUSED(filePaths)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CMakeProjectNode::renameFile(const QString &filePath, const QString &newFilePath)
|
||||
{
|
||||
Q_UNUSED(filePath)
|
||||
Q_UNUSED(newFilePath)
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -45,18 +45,6 @@ public:
|
||||
CMakeProjectNode(const Utils::FileName &fileName);
|
||||
virtual bool showInSimpleTree() const;
|
||||
virtual QList<ProjectExplorer::ProjectAction> supportedActions(Node *node) const;
|
||||
|
||||
virtual bool canAddSubProject(const QString &proFilePath) const;
|
||||
|
||||
virtual bool addSubProjects(const QStringList &proFilePaths);
|
||||
virtual bool removeSubProjects(const QStringList &proFilePaths);
|
||||
virtual bool addFiles( const QStringList &filePaths,
|
||||
QStringList *notAdded = 0);
|
||||
virtual bool removeFiles(const QStringList &filePaths,
|
||||
QStringList *notRemoved = 0);
|
||||
virtual bool deleteFiles(const QStringList &filePaths);
|
||||
virtual bool renameFile(const QString &filePath,
|
||||
const QString &newFilePath);
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user