forked from qt-creator/qt-creator
Allow adding files in generic project
Merge-request: 736 Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
This commit is contained in:
committed by
Thorbjørn Lindeijer
parent
ec99630034
commit
375d81166c
@@ -165,7 +165,8 @@ bool GenericProjectNode::hasTargets() const
|
||||
|
||||
QList<ProjectExplorer::ProjectNode::ProjectAction> GenericProjectNode::supportedActions() const
|
||||
{
|
||||
return QList<ProjectAction>();
|
||||
return QList<ProjectAction>()
|
||||
<< AddFile;
|
||||
}
|
||||
|
||||
bool GenericProjectNode::addSubProjects(const QStringList &proFilePaths)
|
||||
@@ -184,9 +185,9 @@ bool GenericProjectNode::addFiles(const ProjectExplorer::FileType fileType,
|
||||
const QStringList &filePaths, QStringList *notAdded)
|
||||
{
|
||||
Q_UNUSED(fileType);
|
||||
Q_UNUSED(filePaths);
|
||||
Q_UNUSED(notAdded);
|
||||
return false;
|
||||
|
||||
return m_project->addFiles(filePaths);
|
||||
}
|
||||
|
||||
bool GenericProjectNode::removeFiles(const ProjectExplorer::FileType fileType,
|
||||
|
||||
Reference in New Issue
Block a user