aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlcompiler/qqmljslogger.cpp
diff options
context:
space:
mode:
authorOlivier De Cannière <olivier.decanniere@qt.io>2024-10-14 12:31:16 +0200
committerOlivier De Cannière <olivier.decanniere@qt.io>2024-10-31 11:49:54 +0100
commit660fc8fb7d1976f5f10fbf6381e7f372f71e0f59 (patch)
tree7258c3c88085968e4b13b3d684bbde6f98100b64 /src/qmlcompiler/qqmljslogger.cpp
parent00f58f2eca6bfcc66dcc79c249e51d2d34eb6a11 (diff)
QmlCompiler: Rename QQmlJSLogger's fileName to filePath
This is done in prepartion for the following patch in the chain. Pick-to: 6.8 Change-Id: If8ce75be8ba00e7e4cdd5a0f5e66319ab0d36755 Reviewed-by: Sami Shalayel <sami.shalayel@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qmlcompiler/qqmljslogger.cpp')
-rw-r--r--src/qmlcompiler/qqmljslogger.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qmlcompiler/qqmljslogger.cpp b/src/qmlcompiler/qqmljslogger.cpp
index cc7a44db93..576ce2548e 100644
--- a/src/qmlcompiler/qqmljslogger.cpp
+++ b/src/qmlcompiler/qqmljslogger.cpp
@@ -250,9 +250,9 @@ void QQmlJSLogger::log(const QString &message, QQmlJS::LoggerWarningId id,
QString prefix;
- if ((!overrideFileName.isEmpty() || !m_fileName.isEmpty()) && showFileName)
+ if ((!overrideFileName.isEmpty() || !m_filePath.isEmpty()) && showFileName)
prefix =
- (!overrideFileName.isEmpty() ? overrideFileName : m_fileName) + QStringLiteral(":");
+ (!overrideFileName.isEmpty() ? overrideFileName : m_filePath) + QStringLiteral(":");
if (srcLocation.isValid())
prefix += QStringLiteral("%1:%2: ").arg(srcLocation.startLine).arg(srcLocation.startColumn);
@@ -309,7 +309,7 @@ void QQmlJSLogger::printContext(const QString &overrideFileName,
{
QString code = m_code;
- if (!overrideFileName.isEmpty() && overrideFileName != QFileInfo(m_fileName).absolutePath()) {
+ if (!overrideFileName.isEmpty() && overrideFileName != QFileInfo(m_filePath).absolutePath()) {
QFile file(overrideFileName);
const bool success = file.open(QFile::ReadOnly);
Q_ASSERT(success);
@@ -340,7 +340,7 @@ void QQmlJSLogger::printContext(const QString &overrideFileName,
void QQmlJSLogger::printFix(const QQmlJSFixSuggestion &fixItem)
{
- const QString currentFileAbsPath = QFileInfo(m_fileName).absolutePath();
+ const QString currentFileAbsPath = QFileInfo(m_filePath).absolutePath();
QString code = m_code;
QString currentFile;
m_output.writePrefixedMessage(fixItem.fixDescription(), QtInfoMsg);