View Single Post
Old 10-10-2018, 10:30 PM   #42
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,893
Karma: 6120478
Join Date: Nov 2009
Device: many
FWIW, the implementation in the KDE plugin for QFileIcon provider uses fromTheme as well:

Code:
	QIcon KdePlatformTheme::fileIcon(const QFileInfo &fileInfo, QPlatformTheme::IconOptions iconOptions) const
114		{
115		    if (iconOptions.testFlag(DontUseCustomDirectoryIcons) && fileInfo.isDir()) {
116		        return QIcon::fromTheme(QLatin1String("inode-directory"));
117		    }
118		
119		    return QIcon::fromTheme(KIO::iconNameForUrl(QUrl::fromLocalFile(fileInfo.absoluteFilePath())));
120		}
And the simple testcase does the following:
Code:
QListWidgetItem *firstItem = new QListWidgetItem(QIcon::fromTheme("dialog-information"),
                                                     "ONE");
So my guess is that QIcon routine is or its themed version is where the trouble may be.

Last edited by KevinH; 10-10-2018 at 10:33 PM.
KevinH is online now   Reply With Quote