forked from qt-creator/qt-creator
QmlProjectManager: Avoid one use of FilePath::calcRelativePath()
... and two of FilePath::toUrlishString(). Change-Id: I4bda0fc7a18ed62c71726c5c5f08dbb643bfa03c Reviewed-by: Knud Dollereder <knud.dollereder@qt.io>
This commit is contained in:
@@ -231,8 +231,7 @@ QString CMakeWriter::makeFindPackageBlock(const NodePtr &node, const QmlBuildSys
|
|||||||
|
|
||||||
QString CMakeWriter::makeRelative(const NodePtr &node, const Utils::FilePath &path) const
|
QString CMakeWriter::makeRelative(const NodePtr &node, const Utils::FilePath &path) const
|
||||||
{
|
{
|
||||||
const QString dir = node->dir.toUrlishString();
|
return "\"" + path.relativePathFromDir(node->dir).path() + "\"";
|
||||||
return "\"" + Utils::FilePath::calcRelativePath(path.toUrlishString(), dir) + "\"";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QString CMakeWriter::makeQmlFilesBlock(const NodePtr &node) const
|
QString CMakeWriter::makeQmlFilesBlock(const NodePtr &node) const
|
||||||
|
Reference in New Issue
Block a user