aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMaximilian Goldstein <max.goldstein@qt.io>2021-04-30 12:40:43 +0200
committerMaximilian Goldstein <max.goldstein@qt.io>2021-04-30 13:07:06 +0200
commit643b59000583ac8be8e208c2fa329524db8a5571 (patch)
treec73ec32f86fba91835efdc7139bde626e9f37c9d /tools
parent5f0e3d4ea76fccf761926da7ab041b9da3bffc4a (diff)
qmllint: Fix newlines when disabling unqualified access warnings
Previously you'd get a bunch of newlines regardless of whether or not a warning was actually produced. Change-Id: I9b09f68d5190f2b6112f650900ffb1429be8c788 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tools')
-rw-r--r--tools/qmllint/checkidentifiers.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/qmllint/checkidentifiers.cpp b/tools/qmllint/checkidentifiers.cpp
index 2c87023701..4cfcaf91d3 100644
--- a/tools/qmllint/checkidentifiers.cpp
+++ b/tools/qmllint/checkidentifiers.cpp
@@ -430,6 +430,8 @@ void CheckIdentifiers::operator()(
QLatin1String("You first have to give the root element an id\n"),
QtInfoMsg, QStringLiteral("Note"));
}
+
+ colorOut.write(QLatin1String("\n\n\n"));
} else if (jsId.has_value()
&& jsId->kind == QQmlJSScope::JavaScriptIdentifier::Injected) {
const QQmlJSScope::JavaScriptIdentifier id = jsId.value();
@@ -454,9 +456,8 @@ void CheckIdentifiers::operator()(
colorOut.write(QLatin1String(", "), QtInfoMsg);
}
colorOut.write(QLatin1String(handler.isMultiline ? ")" : ") => "), QtInfoMsg);
- colorOut.write(QLatin1String(" {..."));
+ colorOut.write(QLatin1String(" {...\n\n\n"));
}
- colorOut.write(QLatin1String("\n\n\n"));
}
const auto childScopes = currentScope->childScopes();
for (auto const &childScope : childScopes)