Changeset 829 for trunk/src


Ignore:
Timestamp:
Nov 19, 2010, 1:29:47 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: Return a correct system icon (folder or file) for a non-existent path based on some heuristics, instead of a default Qt icon which doesn't match the style.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/itemviews/qfileiconprovider.cpp

    r769 r829  
    340340        QDir::cleanPath(fileInfo.absoluteFilePath())).toLocal8Bit();
    341341    HPOINTER hicon = WinLoadFileIcon(path, FALSE);
     342
     343
     344
     345
     346
     347
     348
     349
     350
     351
     352
     353
     354
     355
     356
     357
     358
     359
     360
     361
     362
     363
     364
     365
     366
     367
     368
     369
     370
     371
     372
    342373    if (hicon != NULLHANDLE) {
    343374        // we're requesting the system (shared) icon handle which should be
Note: See TracChangeset for help on using the changeset viewer.