Changeset 10682


Ignore:
Timestamp:
May 24, 2010, 2:45:39 AM (12 years ago)
Author:
Longinus00
Message:

(qt) Add more file extensions to icon detection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/utils.cc

    r10536 r10682  
    176176
    177177        fileIcons[DOCUMENT] = QtIconLoader :: icon( "text-x-generic", fallback );
    178         suffixes[DOCUMENT] << "txt" << "doc" << "pdf" << "rtf" << "htm" << "html";
     178        suffixes[DOCUMENT] << "abw" << "csv" << "doc" << "dvi" << "htm" << "html" << "ini" << "log"
     179                           << "odp" << "ods" << "odt" << "pdf" << "ppt" << "ps" << "rtf" << "tex"
     180                           << "txt" << "xml";
    179181
    180182        fileIcons[PICTURE]  = QtIconLoader :: icon( "image-x-generic", fallback );
    181         suffixes[PICTURE] << "jpg" << "jpeg" << "png" << "gif" << "tiff" << "pcx";
     183        suffixes[PICTURE] << "bmp" << "gif" << "jpg" << "jpeg" << "pcx" << "png" << "psd" << "raw"
     184                          << "tga" << "tiff";
    182185
    183186        fileIcons[VIDEO] = QtIconLoader :: icon( "video-x-generic", fallback );
    184         suffixes[VIDEO] << "avi" << "mpeg" << "mp4" << "mkv" << "mov";
     187        suffixes[VIDEO] << "3gp" << "asf" << "avi" << "mov" << "mpeg" << "mpg" << "mp4" << "mkv"
     188                        << "mov" << "ogm" << "ogv" << "qt" << "rm" << "wmv";
    185189
    186190        fileIcons[ARCHIVE]  = QtIconLoader :: icon( "package-x-generic", fallback );
    187         suffixes[ARCHIVE] << "rar" << "zip" << "sft" << "tar" << "7z" << "cbz";
     191        suffixes[ARCHIVE] << "7z" << "ace" << "bz2" << "cbz" << "gz" << "gzip" << "lzma" << "rar"
     192                          << "sft" << "tar" << "zip";
    188193
    189194        fileIcons[AUDIO] = QtIconLoader :: icon( "audio-x-generic", fallback );
    190         suffixes[AUDIO] << "aiff" << "au" << "m3u" << "mp2" << "wav" << "mp3" << "ape" << "mid"
    191                         << "aac" << "ogg" << "ra" << "ram" << "flac" << "mpc" << "shn";
     195        suffixes[AUDIO] << "aac" << "ac3" << "aiff" << "ape" << "au" << "flac" << "m3u" << "m4a"
     196                        << "mid" << "midi" << "mp2" << "mp3" << "mpc" << "nsf" << "oga" << "ogg"
     197                        << "ra" << "ram" << "shn" << "voc" << "wav" << "wma";
    192198
    193199        fileIcons[APP] = QtIconLoader :: icon( "application-x-executable", fallback );
    194         suffixes[APP] << "exe";
     200        suffixes[APP] << "bat" << "cmd" << "com" << "exe";
    195201    }
    196202
Note: See TracChangeset for help on using the changeset viewer.