forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user