mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 14:50:53 +01:00
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:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user