| 90 | } |
| 91 | |
| 92 | QString expandTilde(QString path) { |
| 93 | if ((path.size() == 1 && path[0] == '~') || (path.size() >= 2 && path.startsWith("~/"))) { |
| 94 | path.remove(0, 1); |
| 95 | path.prepend(QDir::homePath()); |
| 96 | } |
| 97 | |
| 98 | return path; |
| 99 | } |
| 100 | |
| 101 | // calculate path to config file |
| 102 | QString getConfigFilePath() { |
no outgoing calls
no test coverage detected