Utils: add FilePath::toUrlishString() (QtCreator 16 API) to qds/4.7

This makes cherry-picks from qds/dev compatible without many adjustments

Change-Id: Ie32f0eef211824701e6557a616b632aa9204a58a
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Tim Jenßen
2025-03-25 09:18:54 +01:00
committed by Tim Jenssen
parent 362956a710
commit 117a05fe7d
2 changed files with 6 additions and 0 deletions

View File

@@ -310,6 +310,11 @@ QString FilePath::toString() const
return scheme() + "://" + encodedHost() + pathView(); return scheme() + "://" + encodedHost() + pathView();
} }
QString FilePath::toUrlishString() const
{
return toString();
}
bool FilePath::equals(const FilePath &first, const FilePath &second, Qt::CaseSensitivity cs) bool FilePath::equals(const FilePath &first, const FilePath &second, Qt::CaseSensitivity cs)
{ {
if (first.m_hash != 0 && second.m_hash != 0 && first.m_hash != second.m_hash) if (first.m_hash != 0 && second.m_hash != 0 && first.m_hash != second.m_hash)

View File

@@ -310,6 +310,7 @@ public:
// FIXME: Avoid. See toSettings, toVariant, toUserOutput, toFSPathString, path, nativePath. // FIXME: Avoid. See toSettings, toVariant, toUserOutput, toFSPathString, path, nativePath.
QString toString() const; QString toString() const;
QString toUrlishString() const;
bool equalsCaseSensitive(const FilePath &other) const; bool equalsCaseSensitive(const FilePath &other) const;