| 73 | } |
| 74 | |
| 75 | QString JoinPathQt(std::initializer_list<QString> folders) |
| 76 | { |
| 77 | QString result; |
| 78 | bool firstInserted = false; |
| 79 | for (auto it = folders.begin(); it != folders.end(); ++it) |
| 80 | { |
| 81 | if (it->isEmpty() || *it == QDir::separator()) |
| 82 | continue; |
| 83 | |
| 84 | if (firstInserted) |
| 85 | result.append(QDir::separator()); |
| 86 | |
| 87 | result.append(*it); |
| 88 | firstInserted = true; |
| 89 | } |
| 90 | return QDir::cleanPath(result); |
| 91 | } |
| 92 | |
| 93 | QString GetExternalPath(QString const & name, QString const & primaryPath, QString const & secondaryPath) |
| 94 | { |
no test coverage detected