######################################################################### Converts a path to an absolute path and resolves paths relative to the Qucs home directory
| 274 | // Converts a path to an absolute path and resolves paths relative to the |
| 275 | // Qucs home directory |
| 276 | QString misc::properAbsFileName(const QString& Name) |
| 277 | { |
| 278 | QString s = Name; |
| 279 | QFileInfo Info(s); |
| 280 | |
| 281 | if(Info.isRelative()) |
| 282 | { |
| 283 | // if it's a relative file, look for it relative to the |
| 284 | // working directory (the qucs home directory) |
| 285 | s = QucsSettings.QucsWorkDir.filePath(s); |
| 286 | } |
| 287 | // return the clean path |
| 288 | return QDir::cleanPath(s); |
| 289 | } |
| 290 | |
| 291 | // ######################################################################### |
| 292 | QString misc::properFileName(const QString& Name) |
nothing calls this directly
no outgoing calls
no test coverage detected