From e30ad4a940afc68c13f284a3f038bb67764a6e5c Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 27 Apr 2017 23:56:12 -0400 Subject: Speed up the SVG icon loading routine. Get rid of the special SVG loading/parsing checks now that we have our own, guaranteed-working, SVG icon theme. The only special check which was kept in place was to skip any SVG icon with "libreoffice" in the name (known bad icons - results in distorted images). --- src-qt5/core/libLumina/LuminaXDG.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src-qt5/core') diff --git a/src-qt5/core/libLumina/LuminaXDG.cpp b/src-qt5/core/libLumina/LuminaXDG.cpp index 3e31c3fc..8da39564 100644 --- a/src-qt5/core/libLumina/LuminaXDG.cpp +++ b/src-qt5/core/libLumina/LuminaXDG.cpp @@ -800,24 +800,24 @@ QIcon LXDG::findIcon(QString iconName, QString fallback){ QStringList srch; srch << "icontheme" << "default" << "fallback"; for(int i=0; i",0,0); svginfo.replace("\t"," "); svginfo.replace("\n"," "); if(svginfo.contains(" version=")){ version = svginfo.section(" version=\"",1,1).section("\"",0,0).toFloat(); } - if(version>=1.1){ + if(version>=1.1){*/ ico.addFile(srch[i]+":"+iconName+".svg"); //could be loaded/parsed successfully - }else{ + /*}else{ //qDebug() << "Old SVG Version file:" << iconName+".svg Theme:" << srch[i]; //qDebug() << "SVGInfo:" << svginfo; } }else{ qDebug() << "Found bad SVG file:" << iconName+".svg Theme:" << srch[i]; - } + }*/ } if(QFile::exists(srch[i]+":"+iconName+".png")){ //simple PNG image - load directly into the QIcon structure -- cgit