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:
@@ -188,34 +188,11 @@ QList<ProjectExplorer::ProjectAction> QmlProjectNode::supportedActions(Node *nod
|
||||
return actions;
|
||||
}
|
||||
|
||||
bool QmlProjectNode::canAddSubProject(const QString &proFilePath) const
|
||||
{
|
||||
Q_UNUSED(proFilePath)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool QmlProjectNode::addSubProjects(const QStringList &proFilePaths)
|
||||
{
|
||||
Q_UNUSED(proFilePaths)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool QmlProjectNode::removeSubProjects(const QStringList &proFilePaths)
|
||||
{
|
||||
Q_UNUSED(proFilePaths)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool QmlProjectNode::addFiles(const QStringList &filePaths, QStringList * /*notAdded*/)
|
||||
{
|
||||
return m_project->addFiles(filePaths);
|
||||
}
|
||||
|
||||
bool QmlProjectNode::removeFiles(const QStringList & /*filePaths*/, QStringList * /*notRemoved*/)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool QmlProjectNode::deleteFiles(const QStringList & /*filePaths*/)
|
||||
{
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user