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:
@@ -966,7 +966,7 @@ FilePath FilePath::relativeChildPath(const FilePath &parent) const
|
||||
return res;
|
||||
}
|
||||
|
||||
/// \returns the relativePath of FilePath to given \a anchor.
|
||||
/// \returns the relativePath of FilePath from a given \a anchor.
|
||||
/// Both, FilePath and anchor may be files or directories.
|
||||
/// Example usage:
|
||||
///
|
||||
@@ -978,7 +978,7 @@ FilePath FilePath::relativeChildPath(const FilePath &parent) const
|
||||
///
|
||||
/// The debug output will be "../b/ar/file.txt".
|
||||
///
|
||||
FilePath FilePath::relativePath(const FilePath &anchor) const
|
||||
FilePath FilePath::relativePathFrom(const FilePath &anchor) const
|
||||
{
|
||||
QTC_ASSERT(isSameDevice(anchor), return *this);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user