Remove no longer needed ifdef Q_OS_WINCE.
There is now an implementation to qt_pixmapFromWinHICON. So use it for Windows CE too. Change-Id: Ie2f3cacd4be9209e33d49e53703c5abc95d98d09 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>bb10
parent
84607219c0
commit
def35efe2a
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in New Issue