forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/qds/dev'
Conflicts: src/libs/utils/filepath.cpp src/plugins/qmldesigner/qmldesignerexternaldependencies.cpp src/plugins/qmlprojectmanager/cmakegen/generatecmakelists.cpp tests/unit/unittest/CMakeLists.txt Change-Id: I017a6075db41a5233487ac855ffe23de2b2bb0ee
This commit is contained in:
@@ -1320,13 +1320,13 @@ FilePath FilePath::relativeChildPath(const FilePath &parent) const
|
||||
}
|
||||
|
||||
/*!
|
||||
Returns the relativePath of FilePath from a given \a anchor.
|
||||
Returns the relative path of FilePath from a given \a anchor.
|
||||
Both, FilePath and anchor may be files or directories.
|
||||
Example usage:
|
||||
|
||||
\code
|
||||
FilePath filePath("/foo/b/ar/file.txt");
|
||||
FilePath relativePath = filePath.relativePath("/foo/c");
|
||||
FilePath relativePath = filePath.relativePathFrom("/foo/c");
|
||||
qDebug() << relativePath
|
||||
\endcode
|
||||
|
||||
|
||||
Reference in New Issue
Block a user