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:
hjk
2019-05-28 13:49:26 +02:00
parent 4704f49fbb
commit 473a741c9f
688 changed files with 3487 additions and 3484 deletions

View File

@@ -34,7 +34,7 @@ QT_BEGIN_NAMESPACE
class QStringList;
QT_END_NAMESPACE
namespace Utils { class FileName; }
namespace Utils { class FilePath; }
namespace Core {
@@ -123,7 +123,7 @@ public:
const QString &alwaysSaveMessage = QString(),
bool *alwaysSave = nullptr,
QList<IDocument *> *failedToClose = nullptr);
static void showFilePropertiesDialog(const Utils::FileName &filePath);
static void showFilePropertiesDialog(const Utils::FilePath &filePath);
static QString fileDialogLastVisitedDirectory();
static void setFileDialogLastVisitedDirectory(const QString &);
@@ -136,8 +136,8 @@ public:
static bool useProjectsDirectory();
static void setUseProjectsDirectory(bool);
static Utils::FileName projectsDirectory();
static void setProjectsDirectory(const Utils::FileName &directory);
static Utils::FilePath projectsDirectory();
static void setProjectsDirectory(const Utils::FilePath &directory);
/* Used to notify e.g. the code model to update the given files. Does *not*
lead to any editors to reload or any other editor manager actions. */
@@ -151,7 +151,7 @@ signals:
void allDocumentsRenamed(const QString &from, const QString &to);
/// emitted if one document changed its name e.g. due to save as
void documentRenamed(Core::IDocument *document, const QString &from, const QString &to);
void projectsDirectoryChanged(const Utils::FileName &directory);
void projectsDirectoryChanged(const Utils::FilePath &directory);
private:
explicit DocumentManager(QObject *parent);
@@ -161,7 +161,7 @@ private:
void checkForNewFileName();
void checkForReload();
void changedFile(const QString &file);
void filePathChanged(const Utils::FileName &oldName, const Utils::FileName &newName);
void filePathChanged(const Utils::FilePath &oldName, const Utils::FilePath &newName);
friend class Core::Internal::MainWindow;
friend class Core::Internal::DocumentManagerPrivate;