forked from qt-creator/qt-creator
Utils: Make FilePath::mapToDevicePath() private
User code is supposed to use .onDevice(...). Change-Id: Ia14198bbd472db05f5177f06f832dfc468415ba1 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -163,7 +163,6 @@ public:
|
|||||||
QDirIterator::IteratorFlags flags = QDirIterator::NoIteratorFlags) const;
|
QDirIterator::IteratorFlags flags = QDirIterator::NoIteratorFlags) const;
|
||||||
|
|
||||||
[[nodiscard]] FilePath mapToGlobalPath() const;
|
[[nodiscard]] FilePath mapToGlobalPath() const;
|
||||||
[[nodiscard]] QString mapToDevicePath() const;
|
|
||||||
|
|
||||||
// makes sure that capitalization of directories is canonical
|
// makes sure that capitalization of directories is canonical
|
||||||
// on Windows and macOS. This is rarely needed.
|
// on Windows and macOS. This is rarely needed.
|
||||||
@@ -194,6 +193,7 @@ private:
|
|||||||
friend class ::tst_fileutils;
|
friend class ::tst_fileutils;
|
||||||
static QString calcRelativePath(const QString &absolutePath, const QString &absoluteAnchorPath);
|
static QString calcRelativePath(const QString &absolutePath, const QString &absoluteAnchorPath);
|
||||||
void setFromString(const QString &filepath);
|
void setFromString(const QString &filepath);
|
||||||
|
[[nodiscard]] QString mapToDevicePath() const;
|
||||||
|
|
||||||
QString m_scheme;
|
QString m_scheme;
|
||||||
QString m_host;
|
QString m_host;
|
||||||
|
Reference in New Issue
Block a user