Enable 'Remove file...' on Generic project

Merge-request: 783
Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
This commit is contained in:
Kevin Michel
2009-06-30 14:07:07 +02:00
committed by Thorbjørn Lindeijer
parent a39d7e8d12
commit b170e3ba87
3 changed files with 26 additions and 8 deletions

View File

@@ -167,7 +167,8 @@ bool GenericProjectNode::hasTargets() const
QList<ProjectExplorer::ProjectNode::ProjectAction> GenericProjectNode::supportedActions() const
{
return QList<ProjectAction>()
<< AddFile;
<< AddFile
<< RemoveFile;
}
bool GenericProjectNode::addSubProjects(const QStringList &proFilePaths)
@@ -195,9 +196,9 @@ bool GenericProjectNode::removeFiles(const ProjectExplorer::FileType fileType,
const QStringList &filePaths, QStringList *notRemoved)
{
Q_UNUSED(fileType);
Q_UNUSED(filePaths);
Q_UNUSED(notRemoved);
return false;
return m_project->removeFiles(filePaths);
}
bool GenericProjectNode::renameFile(const ProjectExplorer::FileType fileType,