forked from qt-creator/qt-creator
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:
@@ -513,3 +513,10 @@ QString ResourceFileNode::qrcPath() const
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -105,6 +105,7 @@ public:
|
||||
|
||||
QString displayName() const;
|
||||
QString qrcPath() const;
|
||||
QList<ProjectExplorer::ProjectAction> supportedActions(Node *node) const;
|
||||
|
||||
private:
|
||||
ResourceTopLevelNode *m_topLevel;
|
||||
|
||||
Reference in New Issue
Block a user