forked from qt-creator/qt-creator
ProjectExplorer: Slim down user side ProjectNode handling
Change-Id: If727ff6cd09cc127e031c49c47f61ffda631a80e Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -91,18 +91,6 @@ static bool addFilesToResource(const Utils::FileName &resourceFile,
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool sortByPrefixAndLang(ProjectExplorer::FolderNode *a, ProjectExplorer::FolderNode *b)
|
||||
{
|
||||
ResourceFolderNode *aa = static_cast<ResourceFolderNode *>(a);
|
||||
ResourceFolderNode *bb = static_cast<ResourceFolderNode *>(b);
|
||||
|
||||
if (aa->prefix() < bb->prefix())
|
||||
return true;
|
||||
if (bb->prefix() < aa->prefix())
|
||||
return false;
|
||||
return aa->lang() < bb->lang();
|
||||
}
|
||||
|
||||
ResourceTopLevelNode::ResourceTopLevelNode(
|
||||
const Utils::FileName &filePath, const QString &contents,
|
||||
ProjectExplorer::FolderNode *parent)
|
||||
|
||||
Reference in New Issue
Block a user