| 36 | } |
| 37 | |
| 38 | void DocumentIdentifier::setLoadedFilePath(const String & file_name) |
| 39 | { |
| 40 | // only change the path if we need to, otherwise low and upper case might be altered by Qt, making comparison in tests more tricky |
| 41 | // i.e., a call to this will report unmatched strings |
| 42 | // FeatureXMLFile().load(OPENMS_GET_TEST_DATA_PATH("FeatureXMLFile_1.featureXML"), e); |
| 43 | // TEST_STRING_EQUAL(e.getLoadedFilePath(), OPENMS_GET_TEST_DATA_PATH("FeatureXMLFile_1.featureXML")); |
| 44 | if (QDir::isRelativePath(file_name.toQString())) |
| 45 | { |
| 46 | file_path_ = File::absolutePath(file_name); |
| 47 | } |
| 48 | else |
| 49 | { |
| 50 | file_path_ = file_name; |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | const String & DocumentIdentifier::getLoadedFilePath() const |
| 55 | { |