icon for project file

This commit is contained in:
Roy Qu 2022-02-13 20:12:20 +08:00
parent 409091d52b
commit ee658b291f
4 changed files with 4 additions and 1 deletions

View File

@ -26,6 +26,8 @@ QIcon CustomFileIconProvider::icon(const QFileInfo &info) const
icon = pIconsManager->getIcon(IconsManager::FILESYSTEM_CPPFILE);
} else if (isCFile(info.fileName())) {
icon = pIconsManager->getIcon(IconsManager::FILESYSTEM_CFILE);
} else if (info.suffix()=="dev") {
icon = pIconsManager->getIcon(IconsManager::FILESYSTEM_PROJECTFILE);
}
if (!icon.isNull())
return icon;

View File

@ -185,7 +185,7 @@ void IconsManager::updateFileSystemIcons(const QString &iconSet, int size)
mIconPixmaps.insert(FILESYSTEM_CFILE, createSVGIcon(iconFolder+"cfile.svg",size,size));
mIconPixmaps.insert(FILESYSTEM_HFILE, createSVGIcon(iconFolder+"hfile.svg",size,size));
mIconPixmaps.insert(FILESYSTEM_CPPFILE, createSVGIcon(iconFolder+"cppfile.svg",size,size));
mIconPixmaps.insert(FILESYSTEM_CPPFILE, createSVGIcon(iconFolder+"cppfile.svg",size,size));
mIconPixmaps.insert(FILESYSTEM_PROJECTFILE, createSVGIcon(iconFolder+"projectfile.svg",size,size));
mIconPixmaps.insert(FILESYSTEM_HEADERS_FOLDER, createSVGIcon(iconFolder+"headerfolder.svg",size,size));
mIconPixmaps.insert(FILESYSTEM_SOURCES_FOLDER, createSVGIcon(iconFolder+"sourcefolder.svg",size,size));
}

View File

@ -70,6 +70,7 @@ public:
FILESYSTEM_FILE,
FILESYSTEM_CFILE,
FILESYSTEM_HFILE,
FILESYSTEM_PROJECTFILE,
FILESYSTEM_CPPFILE,
FILESYSTEM_HEADERS_FOLDER,
FILESYSTEM_SOURCES_FOLDER,

View File

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB