Show "Open containing folder" also for files of qrc nodes.

Task-number: QTCREATORBUG-12374
Change-Id: I9dd8bbf9134bac65fbaa70b0614b27365377b0bf
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
Daniel Teske
2014-06-12 15:12:27 +02:00
parent 4df72c0879
commit cb8d6c0c9e
2 changed files with 8 additions and 0 deletions

View File

@@ -513,3 +513,10 @@ QString ResourceFileNode::qrcPath() const
{ {
return m_qrcPath; return m_qrcPath;
} }
QList<ProjectExplorer::ProjectAction> ResourceFileNode::supportedActions(ProjectExplorer::Node *node) const
{
QList<ProjectExplorer::ProjectAction> actions = parentFolderNode()->supportedActions(node);
actions.removeOne(ProjectExplorer::HidePathActions);
return actions;
}

View File

@@ -105,6 +105,7 @@ public:
QString displayName() const; QString displayName() const;
QString qrcPath() const; QString qrcPath() const;
QList<ProjectExplorer::ProjectAction> supportedActions(Node *node) const;
private: private:
ResourceTopLevelNode *m_topLevel; ResourceTopLevelNode *m_topLevel;