diff options
author | Daniel Teske <daniel.teske@digia.com> | 2013-07-01 16:13:48 +0200 |
---|---|---|
committer | Daniel Teske <daniel.teske@digia.com> | 2013-07-08 17:05:04 +0200 |
commit | cc7fe5eac6ea6125b063ee36d0763d5cb230e26f (patch) | |
tree | 59a9750b5ce40148764526171fb807bab0aaaa68 /src/plugins/qt4projectmanager/qt4nodes.h | |
parent | a98fe15fe51a87e2943623caf2a8ea072cfc5919 (diff) | |
download | qt-creator-cc7fe5eac6ea6125b063ee36d0763d5cb230e26f.tar.gz |
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>
Diffstat (limited to 'src/plugins/qt4projectmanager/qt4nodes.h')
-rw-r--r-- | src/plugins/qt4projectmanager/qt4nodes.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/plugins/qt4projectmanager/qt4nodes.h b/src/plugins/qt4projectmanager/qt4nodes.h index 58ba3bdb89..b2e4967861 100644 --- a/src/plugins/qt4projectmanager/qt4nodes.h +++ b/src/plugins/qt4projectmanager/qt4nodes.h @@ -153,14 +153,10 @@ public: bool addSubProjects(const QStringList &proFilePaths); bool removeSubProjects(const QStringList &proFilePaths); - bool addFiles(const FileType fileType, const QStringList &filePaths, - QStringList *notAdded = 0); - bool removeFiles(const FileType fileType, const QStringList &filePaths, - QStringList *notRemoved = 0); - bool deleteFiles(const FileType fileType, - const QStringList &filePaths); - bool renameFile(const FileType fileType, - const QString &filePath, const QString &newFilePath); + bool addFiles(const QStringList &filePaths, QStringList *notAdded = 0); + bool removeFiles(const QStringList &filePaths, QStringList *notRemoved = 0); + bool deleteFiles(const QStringList &filePaths); + bool renameFile(const QString &filePath, const QString &newFilePath); bool folderChanged(const QString &changedFolder, const QSet<Utils::FileName> &newFiles); @@ -175,7 +171,8 @@ public: static QSet<Utils::FileName> recursiveEnumerate(const QString &folder); protected: void setIncludedInExactParse(bool b); - static QStringList varNames(FileType type); + static QStringList varNames(ProjectExplorer::FileType type); + static QStringList varNames(const QString &mimeType); static QStringList dynamicVarNames(QtSupport::ProFileReader *readerExact, QtSupport::ProFileReader *readerCumulative, QtSupport::BaseQtVersion *qtVersion); static QSet<Utils::FileName> filterFilesProVariables(ProjectExplorer::FileType fileType, const QSet<Utils::FileName> &files); static QSet<Utils::FileName> filterFilesRecursiveEnumerata(ProjectExplorer::FileType fileType, const QSet<Utils::FileName> &files); @@ -185,7 +182,7 @@ protected: RemoveFromProFile }; - void changeFiles(const FileType fileType, + void changeFiles(const QString &mimeType, const QStringList &filePaths, QStringList *notChanged, ChangeType change); |