forked from qt-creator/qt-creator
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:
@@ -310,6 +310,11 @@ QString FilePath::toString() const
|
||||
return scheme() + "://" + encodedHost() + pathView();
|
||||
}
|
||||
|
||||
QString FilePath::toUrlishString() const
|
||||
{
|
||||
return toString();
|
||||
}
|
||||
|
||||
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)
|
||||
|
@@ -310,6 +310,7 @@ public:
|
||||
|
||||
// FIXME: Avoid. See toSettings, toVariant, toUserOutput, toFSPathString, path, nativePath.
|
||||
QString toString() const;
|
||||
QString toUrlishString() const;
|
||||
|
||||
bool equalsCaseSensitive(const FilePath &other) const;
|
||||
|
||||
|
Reference in New Issue
Block a user