Commit b88e7ff6 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Core: Override icon method of QFileIconProvider

Change-Id: Id622ec37351394ba6fc7d5bf9c3464f3da9c21a6
Reviewed-by: Eike Ziller's avatarEike Ziller <>
parent 16bb89fe
......@@ -71,7 +71,7 @@ public:
: m_unknownFileIcon(qApp->style()->standardIcon(QStyle::SP_FileIcon))
QIcon icon(const QFileInfo &info);
QIcon icon(const QFileInfo &info) const override;
using QFileIconProvider::icon;
void registerIconOverlayForFilename(const QIcon &icon, const QString &filename)
......@@ -101,7 +101,7 @@ public:
// Mapping of file suffix to icon.
QHash<QString, QIcon> m_suffixCache;
mutable QHash<QString, QIcon> m_suffixCache;
QHash<QString, QIcon> m_filenameCache;
QIcon m_unknownFileIcon;
......@@ -118,7 +118,7 @@ QFileIconProvider *iconProvider()
return instance();
QIcon FileIconProviderImplementation::icon(const QFileInfo &fileInfo)
QIcon FileIconProviderImplementation::icon(const QFileInfo &fileInfo) const
if (debug)
qDebug() << "FileIconProvider::icon" << fileInfo.absoluteFilePath();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment