| 111 | } |
| 112 | |
| 113 | QIcon GetFileSystemIcon(int type, bool used) |
| 114 | { |
| 115 | if ( type == TYPE_FILE ) |
| 116 | return QIcon(":/icons/fs_document"); |
| 117 | |
| 118 | if ( type == TYPE_DISK ) |
| 119 | return QIcon(":/icons/fs_ssd"); |
| 120 | |
| 121 | if ( type == TYPE_DIR || type == TYPE_ROOTDIR ) { |
| 122 | if (used) |
| 123 | return QIcon(":/icons/fs_open_folder"); |
| 124 | else |
| 125 | return QIcon(":/icons/fs_folder"); |
| 126 | } |
| 127 | |
| 128 | return QIcon(":/icons/fs_unknown"); |
| 129 | } |
no outgoing calls
no test coverage detected