| 21 | namespace { |
| 22 | |
| 23 | inline bool isWindowsDriveLetter(const QString& segment) |
| 24 | { |
| 25 | #ifdef Q_OS_WIN |
| 26 | return segment.size() == 2 && segment.at(0).isLetter() && segment.at(1) == QLatin1Char(':'); |
| 27 | #else |
| 28 | Q_UNUSED(segment); |
| 29 | return false; |
| 30 | #endif |
| 31 | } |
| 32 | |
| 33 | inline bool isAbsolutePath(const QString& path) |
| 34 | { |