Commit ede80222 authored by hjk's avatar hjk
Browse files

ProjectExplorer: Let the container node inherit the project icon



Task-number: QTCREATORBUG-17924
Change-Id: I774ad0ed19ca7f8cbcafe7b704e3e5c62137f4a7
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent 2e0e0539
......@@ -104,10 +104,15 @@ QVariant FlatModel::data(const QModelIndex &index, int role) const
break;
}
case Qt::DecorationRole: {
if (folderNode)
if (folderNode) {
result = folderNode->icon();
else
if (ContainerNode *containerNode = folderNode->asContainerNode()) {
if (ProjectNode *projectNode = containerNode->rootProjectNode())
result = projectNode->icon();
}
} else {
result = Core::FileIconProvider::icon(node->filePath().toString());
}
break;
}
case Qt::FontRole: {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment