| 25 | |
| 26 | namespace { |
| 27 | Path toCanonical(const Path& path) |
| 28 | { |
| 29 | QFileInfo info(path.toLocalFile()); |
| 30 | if (!info.exists()) |
| 31 | return path; |
| 32 | const auto canonical = info.canonicalFilePath(); |
| 33 | if (info.filePath() != canonical) { |
| 34 | return Path(canonical); |
| 35 | } else { |
| 36 | return path; |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | QJsonObject parseFile(const QString& path) |
| 41 | { |
no test coverage detected