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

@@ -69,7 +69,7 @@ public:
}
QString mimeType;
Utils::FileName filePath;
Utils::FilePath filePath;
QString preferredDisplayName;
QString uniqueDisplayName;
QString autoSaveName;
@@ -168,7 +168,7 @@ bool IDocument::setContents(const QByteArray &contents)
return false;
}
const Utils::FileName &IDocument::filePath() const
const Utils::FilePath &IDocument::filePath() const
{
return d->filePath;
}
@@ -323,11 +323,11 @@ InfoBar *IDocument::infoBar()
signals. Can be reimplemented by subclasses to do more.
\sa filePath()
*/
void IDocument::setFilePath(const Utils::FileName &filePath)
void IDocument::setFilePath(const Utils::FilePath &filePath)
{
if (d->filePath == filePath)
return;
Utils::FileName oldName = d->filePath;
Utils::FilePath oldName = d->filePath;
d->filePath = filePath;
emit filePathChanged(oldName, d->filePath);
emit changed();