aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/resourceeditor/resourcenode.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2019-06-21 16:47:17 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2019-06-25 11:29:40 +0000
commit1d589c259b80e4b078dac98adfcea8e701b2d358 (patch)
treeb004187b1e788191af54d500f6f5df92f8cdf417 /src/plugins/resourceeditor/resourcenode.cpp
parent485a97d98492398fe14209271d6fb9395f8e9693 (diff)
ProjectExplorer: Remove dedicated "DuplicateFile" ability
Duplication works for any file node whose parent project node can add files. No need to duplicate (!) this logic everywhere. This makes the "Duplicate File" action available for cmake, qbs, etc. Change-Id: Id1f0378c3b3d7e2dbca4d6bbcca5df1c2d33ee0b Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/resourceeditor/resourcenode.cpp')
-rw-r--r--src/plugins/resourceeditor/resourcenode.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/plugins/resourceeditor/resourcenode.cpp b/src/plugins/resourceeditor/resourcenode.cpp
index baf214a2be..0395c607b4 100644
--- a/src/plugins/resourceeditor/resourcenode.cpp
+++ b/src/plugins/resourceeditor/resourcenode.cpp
@@ -197,7 +197,6 @@ bool SimpleResourceFolderNode::supportsAction(ProjectAction action, const Node *
|| action == AddExistingFile
|| action == AddExistingDirectory
|| action == RemoveFile
- || action == DuplicateFile
|| action == Rename // Note: only works for the filename, works akwardly for relative file paths
|| action == InheritedFromParent; // Do not add to list of projects when adding new file
}
@@ -487,7 +486,6 @@ bool ResourceFolderNode::supportsAction(ProjectAction action, const Node *node)
|| action == AddExistingFile
|| action == AddExistingDirectory
|| action == RemoveFile
- || action == DuplicateFile
|| action == Rename // Note: only works for the filename, works akwardly for relative file paths
|| action == HidePathActions; // hides open terminal etc.
}