Changeset 769 for trunk/src/gui/itemviews/qfileiconprovider.cpp
- Timestamp:
- Aug 2, 2010, 9:27:30 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.3 (added) merged: 768 /branches/vendor/nokia/qt/current merged: 767 /branches/vendor/nokia/qt/4.6.2 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/itemviews/qfileiconprovider.cpp
r651 r769 69 69 #ifndef SHGFI_ADDOVERLAYS 70 70 # define SHGFI_ADDOVERLAYS 0x000000020 71 # define SHGFI_OVERLAYINDEX 0x000000040 71 72 #endif 72 73 … … 254 255 #ifndef Q_OS_WINCE 255 256 val = SHGetFileInfo((const wchar_t *)QDir::toNativeSeparators(fileInfo.filePath()).utf16(), 0, &info, 256 sizeof(SHFILEINFO), SHGFI_ICON|SHGFI_SMALLICON|SHGFI_SYSICONINDEX|SHGFI_ADDOVERLAYS );257 sizeof(SHFILEINFO), SHGFI_ICON|SHGFI_SMALLICON|SHGFI_SYSICONINDEX|SHGFI_ADDOVERLAYS|SHGFI_OVERLAYINDEX); 257 258 #else 258 259 val = SHGetFileInfo((const wchar_t *)QDir::toNativeSeparators(fileInfo.filePath()).utf16(), 0, &info, 259 260 sizeof(SHFILEINFO), SHGFI_SMALLICON|SHGFI_SYSICONINDEX); 260 261 #endif 261 if (val) { 262 263 // Even if GetFileInfo returns a valid result, hIcon can be empty in some cases 264 if (val && info.hIcon) { 262 265 if (fileInfo.isDir() && !fileInfo.isRoot()) { 263 266 //using the unique icon index provided by windows save us from duplicate keys … … 293 296 #ifndef Q_OS_WINCE 294 297 val = SHGetFileInfo((const wchar_t *)QDir::toNativeSeparators(fileInfo.filePath()).utf16(), 0, &info, 295 sizeof(SHFILEINFO), SHGFI_ICON|SHGFI_LARGEICON|SHGFI_SYSICONINDEX|SHGFI_ADDOVERLAYS );298 sizeof(SHFILEINFO), SHGFI_ICON|SHGFI_LARGEICON|SHGFI_SYSICONINDEX|SHGFI_ADDOVERLAYS|SHGFI_OVERLAYINDEX); 296 299 #else 297 300 val = SHGetFileInfo((const wchar_t *)QDir::toNativeSeparators(fileInfo.filePath()).utf16(), 0, &info, 298 301 sizeof(SHFILEINFO), SHGFI_LARGEICON|SHGFI_SYSICONINDEX); 299 302 #endif 300 if (val ) {303 if (val && info.hIcon) { 301 304 if (fileInfo.isDir() && !fileInfo.isRoot()) { 302 305 //using the unique icon index provided by windows save us from duplicate keys
Note:
See TracChangeset
for help on using the changeset viewer.