| 263 | } |
| 264 | |
| 265 | QString Utils::fixFilePath(QString filePath) |
| 266 | { |
| 267 | filePath = filePath.replace('\\', '/'); |
| 268 | if (filePath.left(7).compare("file://") == 0) |
| 269 | filePath = filePath.right(filePath.length() - 7); |
| 270 | #ifdef Q_OS_WIN |
| 271 | if (filePath.size() > 2 && filePath[0] == '/' && filePath[1] != '/') |
| 272 | filePath = filePath.remove(0, 1); |
| 273 | #endif |
| 274 | return filePath; |
| 275 | } |
| 276 | |
| 277 | QString Utils::removeForbiddenFilePathCharacters(QString str) |
| 278 | { |