ProjectExplorer: Slim down user side ProjectNode handling

Change-Id: If727ff6cd09cc127e031c49c47f61ffda631a80e
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
hjk
2017-01-26 11:58:57 +01:00
parent cd70da5dcd
commit beaba559a5
8 changed files with 46 additions and 148 deletions

View File

@@ -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)