diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2017-05-03 10:46:38 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2017-07-08 11:02:39 +0000 |
commit | 2300629df599938d67c13ed134e788db0fe8b21a (patch) | |
tree | 1fbfadda6dcab680f5ff7517fceaea7fb573ed0e /src/printsupport/widgets | |
parent | fb78adf8df3cfb05e419ae248def1da6ad59c15a (diff) |
QWindowsFileIconEngine::filePixmap(): Handle non-existent files
Pass SHGFI_USEFILEATTRIBUTES/FILE_ATTRIBUTE_NORMAL to ShGetFileInfo() in
case a file does not exist to obtain an icon.
SHGFI_USEFILEATTRIBUTES cannot be used unconditionally as it
breaks custom directory icons.
The functionality is then on par with XCB which obtains icons
via QMimeDatabase look-up.
Task-number: QTBUG-25319
Change-Id: Icd894d97fd8d1a2c4d5d39e86afe89843e6720c4
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io>
Diffstat (limited to 'src/printsupport/widgets')
0 files changed, 0 insertions, 0 deletions