forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user