PE: Move ResourceFileNode to ProjectExplorer

Avoids additional dependencies later on. No functional change.

Change-Id: Idc21ed856f4f31d68d55742b5796243227b254dc
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Stenger
2022-06-14 12:34:15 +02:00
parent b28f907114
commit 734035194b
6 changed files with 40 additions and 42 deletions

View File

@@ -1094,4 +1094,28 @@ QIcon DirectoryIcon::icon() const
return icon;
}
ResourceFileNode::ResourceFileNode(const FilePath &filePath, const QString &qrcPath, const QString &displayName)
: FileNode(filePath, FileNode::fileTypeForFileName(filePath))
, m_qrcPath(qrcPath)
, m_displayName(displayName)
{
}
QString ResourceFileNode::displayName() const
{
return m_displayName;
}
QString ResourceFileNode::qrcPath() const
{
return m_qrcPath;
}
bool ResourceFileNode::supportsAction(ProjectAction action, const Node *node) const
{
if (action == HidePathActions)
return false;
return parentFolderNode()->supportsAction(action, node);
}
} // namespace ProjectExplorer