diff --git a/src/plugins/coreplugin/fileiconprovider.cpp b/src/plugins/coreplugin/fileiconprovider.cpp index 63947e8ed6c426111d4a3c513fda62f19cff39f4..50d29a747dcf3a7f31771788ebd08d180a028e2a 100644 --- a/src/plugins/coreplugin/fileiconprovider.cpp +++ b/src/plugins/coreplugin/fileiconprovider.cpp @@ -74,7 +74,7 @@ QIcon FileIconProvider::icon(const QFileInfo &fileInfo) // Disabled since for now we'll make sure that all icons fit with our // own custom icons by returning an empty one if we don't know it. -#if 0 +#ifdef Q_OS_WIN // This is incorrect if the OS does not always return the same icon for the // same suffix (Mac OS X), but should speed up the retrieval a lot ... icon = m_systemIconProvider.icon(fileInfo); @@ -127,7 +127,7 @@ void FileIconProvider::registerIconOverlayForSuffix(const QIcon &icon, const QSt QIcon FileIconProvider::iconForSuffix(const QString &suffix) const { QIcon icon; - +#ifndef Q_OS_WIN // On windows we use the file system icons if (suffix.isEmpty()) return icon; @@ -138,7 +138,7 @@ QIcon FileIconProvider::iconForSuffix(const QString &suffix) const break; } } - +#endif return icon; }