summaryrefslogtreecommitdiffstats
path: root/src/widgets/itemviews/qfileiconprovider.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/itemviews/qfileiconprovider.cpp')
-rw-r--r--src/widgets/itemviews/qfileiconprovider.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/widgets/itemviews/qfileiconprovider.cpp b/src/widgets/itemviews/qfileiconprovider.cpp
index 6b5478b6ca..e90f78c801 100644
--- a/src/widgets/itemviews/qfileiconprovider.cpp
+++ b/src/widgets/itemviews/qfileiconprovider.cpp
@@ -288,11 +288,7 @@ QIcon QFileIconProviderPrivate::getWinIcon(const QFileInfo &fileInfo) const
}
}
if (pixmap.isNull()) {
-#ifndef Q_OS_WINCE
pixmap = qt_pixmapFromWinHICON(info.hIcon);
-#else
- pixmap = QPixmap::fromWinHICON(ImageList_GetIcon((HIMAGELIST) val, info.iIcon, ILD_NORMAL));
-#endif
if (!pixmap.isNull()) {
retIcon.addPixmap(pixmap);
if (!key.isEmpty())
@@ -318,11 +314,7 @@ QIcon QFileIconProviderPrivate::getWinIcon(const QFileInfo &fileInfo) const
//using the unique icon index provided by windows save us from duplicate keys
key = QString::fromLatin1("qt_dir_%1").arg(info.iIcon);
}
-#ifndef Q_OS_WINCE
pixmap = qt_pixmapFromWinHICON(info.hIcon);
-#else
- pixmap = QPixmap::fromWinHICON(ImageList_GetIcon((HIMAGELIST) val, info.iIcon, ILD_NORMAL));
-#endif
if (!pixmap.isNull()) {
retIcon.addPixmap(pixmap);
if (!key.isEmpty())