| 75 | } |
| 76 | |
| 77 | QString ImportFileWidget::absolutePath(const QString& fileName) { |
| 78 | if (fileName.isEmpty()) |
| 79 | return fileName; |
| 80 | |
| 81 | #ifdef HAVE_WINDOWS |
| 82 | if (fileName.size() == 1 || (fileName.at(0) != QLatin1Char('/') && fileName.at(1) != QLatin1Char(':'))) |
| 83 | #else |
| 84 | if (fileName.at(0) != QLatin1Char('/')) |
| 85 | #endif |
| 86 | return QDir::homePath() + QLatin1Char('/') + fileName; |
| 87 | |
| 88 | return fileName; |
| 89 | } |
| 90 | |
| 91 | /*! |
| 92 | \class ImportFileWidget |
no test coverage detected