forked from qt-creator/qt-creator
Project: Simplfy file adding/removing interface
The filetype is only relevant for Qt4 projects. But even for Qt4 projects the file type is insufficient to decide where the file should be added. So remove the file type from the interface and let the projectmanagers themselves figure out what they want to do. Also fix Task-number: QTCREATORBUG-9688 Change-Id: I02f7b1cd2e05efaf76e36fb9af34b109d4482f88 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -259,37 +259,28 @@ bool GenericProjectNode::removeSubProjects(const QStringList &proFilePaths)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool GenericProjectNode::addFiles(const FileType fileType,
|
||||
const QStringList &filePaths, QStringList *notAdded)
|
||||
bool GenericProjectNode::addFiles(const QStringList &filePaths, QStringList *notAdded)
|
||||
{
|
||||
Q_UNUSED(fileType)
|
||||
Q_UNUSED(notAdded)
|
||||
|
||||
return m_project->addFiles(filePaths);
|
||||
}
|
||||
|
||||
bool GenericProjectNode::removeFiles(const FileType fileType,
|
||||
const QStringList &filePaths, QStringList *notRemoved)
|
||||
bool GenericProjectNode::removeFiles(const QStringList &filePaths, QStringList *notRemoved)
|
||||
{
|
||||
Q_UNUSED(fileType)
|
||||
Q_UNUSED(notRemoved)
|
||||
|
||||
return m_project->removeFiles(filePaths);
|
||||
}
|
||||
|
||||
bool GenericProjectNode::deleteFiles(const FileType fileType,
|
||||
const QStringList &filePaths)
|
||||
bool GenericProjectNode::deleteFiles(const QStringList &filePaths)
|
||||
{
|
||||
Q_UNUSED(fileType)
|
||||
Q_UNUSED(filePaths)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool GenericProjectNode::renameFile(const FileType fileType,
|
||||
const QString &filePath, const QString &newFilePath)
|
||||
bool GenericProjectNode::renameFile(const QString &filePath, const QString &newFilePath)
|
||||
{
|
||||
Q_UNUSED(fileType)
|
||||
|
||||
return m_project->renameFile(filePath, newFilePath);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user