forked from qt-creator/qt-creator
Utils: Rename FileName to FilePath
More in line with QFileInfo terminonlogy which appears to be best-of-breed within Qt. Change-Id: I1d051ff1c8363ebd4ee56376451df45216c4c9ab Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -45,7 +45,7 @@ class QMLPROJECTMANAGER_EXPORT QmlProject : public ProjectExplorer::Project
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit QmlProject(const Utils::FileName &filename);
|
||||
explicit QmlProject(const Utils::FilePath &filename);
|
||||
~QmlProject() override;
|
||||
|
||||
ProjectExplorer::Tasks projectIssues(const ProjectExplorer::Kit *k) const final;
|
||||
@@ -62,11 +62,11 @@ public:
|
||||
|
||||
void refresh(RefreshOptions options);
|
||||
|
||||
Utils::FileName canonicalProjectDir() const;
|
||||
Utils::FilePath canonicalProjectDir() const;
|
||||
QString mainFile() const;
|
||||
void setMainFile(const QString &mainFilePath);
|
||||
Utils::FileName targetDirectory(const ProjectExplorer::Target *target) const;
|
||||
Utils::FileName targetFile(const Utils::FileName &sourceFile,
|
||||
Utils::FilePath targetDirectory(const ProjectExplorer::Target *target) const;
|
||||
Utils::FilePath targetFile(const Utils::FilePath &sourceFile,
|
||||
const ProjectExplorer::Target *target) const;
|
||||
|
||||
QList<Utils::EnvironmentItem> environment() const;
|
||||
@@ -79,7 +79,7 @@ public:
|
||||
|
||||
bool needsBuildConfigurations() const final;
|
||||
|
||||
static QStringList makeAbsolute(const Utils::FileName &path, const QStringList &relativePaths);
|
||||
static QStringList makeAbsolute(const Utils::FilePath &path, const QStringList &relativePaths);
|
||||
|
||||
QVariant additionalData(Core::Id id, const ProjectExplorer::Target *target) const override;
|
||||
|
||||
@@ -103,7 +103,7 @@ private:
|
||||
ProjectExplorer::Target *m_activeTarget = nullptr;
|
||||
|
||||
QPointer<QmlProjectItem> m_projectItem;
|
||||
Utils::FileName m_canonicalProjectDir;
|
||||
Utils::FilePath m_canonicalProjectDir;
|
||||
};
|
||||
|
||||
} // namespace QmlProjectManager
|
||||
|
||||
Reference in New Issue
Block a user