Utils: Rename FilePath::relativePath() to relativePathFrom()

Hopefully less confusion about the direction.

Change-Id: I61727d6c4d19e0dfe46f24ff24f5d90f9835d05c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2022-10-18 14:38:29 +02:00
parent 54f7ebf001
commit 4266f612e6
10 changed files with 15 additions and 15 deletions

View File

@@ -372,7 +372,7 @@ FilePath VcsBasePluginState::currentFileDirectory() const
QString VcsBasePluginState::relativeCurrentFile() const
{
QTC_ASSERT(hasFile(), return {});
return data->m_state.currentFile.relativePath(data->m_state.currentFileTopLevel).toString();
return data->m_state.currentFile.relativePathFrom(data->m_state.currentFileTopLevel).toString();
}
QString VcsBasePluginState::currentPatchFile() const
@@ -405,7 +405,7 @@ QString VcsBasePluginState::relativeCurrentProject() const
QTC_ASSERT(hasProject(), return QString());
if (data->m_state.currentProjectTopLevel == data->m_state.currentProjectPath)
return {};
return data->m_state.currentProjectPath.relativePath(data->m_state.currentProjectTopLevel).toString();
return data->m_state.currentProjectPath.relativePathFrom(data->m_state.currentProjectTopLevel).toString();
}
bool VcsBasePluginState::hasTopLevel() const