ProjectExplorer: Added duplicate file action.

Task-number: QTCREATORBUG-15952
Change-Id: Idab6f120e8324b21db261ad4f0db54dd73cda16e
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
Vikas Pachdha
2016-04-08 16:25:29 +02:00
parent e161b5d1cd
commit d3dd0265b3
5 changed files with 53 additions and 1 deletions

View File

@@ -385,6 +385,7 @@ QList<ProjectExplorer::ProjectAction> ResourceFolderNode::supportedActions(Proje
<< ProjectExplorer::AddExistingFile
<< ProjectExplorer::AddExistingDirectory
<< ProjectExplorer::RemoveFile
<< ProjectExplorer::DuplicateFile
<< ProjectExplorer::Rename // Note: only works for the filename, works akwardly for relative file paths
<< ProjectExplorer::HidePathActions; // hides open terminal etc.
@@ -643,6 +644,7 @@ QList<ProjectExplorer::ProjectAction> SimpleResourceFolderNode::supportedActions
<< ProjectExplorer::AddExistingFile
<< ProjectExplorer::AddExistingDirectory
<< ProjectExplorer::RemoveFile
<< ProjectExplorer::DuplicateFile
<< ProjectExplorer::Rename // Note: only works for the filename, works akwardly for relative file paths
<< ProjectExplorer::InheritedFromParent; // do not add to list of projects when adding new file