Use to generate relative path **from** some **other** start_resource (OPFResource, NCXResource, NavResource, etc) "to" **this** resource
| 92 | // Use to generate relative path **from** some **other** start_resource |
| 93 | // (OPFResource, NCXResource, NavResource, etc) "to" **this** resource |
| 94 | QString Resource::GetRelativePathFromResource(const Resource* start_resource) const |
| 95 | { |
| 96 | if (GetRelativePath() == start_resource->GetRelativePath()) return ""; |
| 97 | // return Utility::relativePath(GetRelativePath(), start_resource->GetFolder()); |
| 98 | return Utility::relativePath(m_FullFilePath, start_resource->GetFullFolderPath()); |
| 99 | } |
| 100 | |
| 101 | |
| 102 | // Use to generate relative path from **this** resource to some **other** dest_resource |
no test coverage detected