Introduced the new icon for title block templates, got rid of the "green directory" icon used for projects.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1701 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavier
2012-04-28 21:33:36 +00:00
parent a507e863e7
commit e6180e8971
8 changed files with 7 additions and 6 deletions

View File

@@ -1052,11 +1052,11 @@ QIcon GenericPanel::defaultIcon(QET::ItemType type) {
if (type & QET::ElementsContainer) {
return(QET::Icons::Folder);
} else if (type & QET::TitleBlockTemplatesCollectionItem) {
return(QET::Icons::TitleBlock);
return(QIcon(QET::Icons::TitleBlock.pixmap(QSize(16, 16))));
} else if (type == QET::Diagram) {
return(QET::Icons::Diagram);
} else if (type == QET::Project) {
return(QET::Icons::Project);
return(QIcon(QET::Icons::ProjectFile.pixmap(QSize(16, 16))));
}
return(QIcon());
}