| 31 | } |
| 32 | |
| 33 | inline bool isAbsolutePath(const QString& path) |
| 34 | { |
| 35 | if (path.startsWith(QLatin1Char('/'))) { |
| 36 | return true; // Even on Windows: Potentially a path of a remote URL |
| 37 | } |
| 38 | |
| 39 | #ifdef Q_OS_WIN |
| 40 | return path.size() >= 2 && path.at(0).isLetter() && path.at(1) == QLatin1Char(':'); |
| 41 | #else |
| 42 | return false; |
| 43 | #endif |
| 44 | } |
| 45 | |
| 46 | } |
| 47 |