aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/auto/qml/qmllint/tst_qmllint.cpp4
-rw-r--r--tools/qmllint/findwarnings.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qml/qmllint/tst_qmllint.cpp b/tests/auto/qml/qmllint/tst_qmllint.cpp
index f8e031689b..1a36986663 100644
--- a/tests/auto/qml/qmllint/tst_qmllint.cpp
+++ b/tests/auto/qml/qmllint/tst_qmllint.cpp
@@ -117,7 +117,7 @@ void TestQmllint::testUnknownCausesFail()
{
const QString unknownNotFound = runQmllint("unknownElement.qml", false);
QVERIFY(unknownNotFound.contains(
- QStringLiteral("warning: Unknown was not found. Did you add all import paths?")));
+ QStringLiteral("Warning: Unknown was not found. Did you add all import paths?")));
}
void TestQmllint::directoryPassedAsQmlTypesFile()
@@ -185,7 +185,7 @@ void TestQmllint::dirtyQmlCode_data()
<< QString();
QTest::newRow("badQmldirImportAndDepend")
<< QStringLiteral("qmldirImportAndDepend/bad.qml")
- << QString("warning: Item was not found. Did you add all import paths?")
+ << QString("Warning: Item was not found. Did you add all import paths?")
<< QString();
QTest::newRow("javascriptMethodsInModule")
<< QStringLiteral("javascriptMethodsInModuleBad.qml")
diff --git a/tools/qmllint/findwarnings.cpp b/tools/qmllint/findwarnings.cpp
index e06305b47b..0131921928 100644
--- a/tools/qmllint/findwarnings.cpp
+++ b/tools/qmllint/findwarnings.cpp
@@ -367,7 +367,7 @@ void FindWarningVisitor::importExportedNames(ScopeTree::ConstPtr scope)
} else if (auto newScope = scope->baseType()) {
scope = newScope;
} else {
- m_colorOut.write(QLatin1String("warning: "), Warning);
+ m_colorOut.write(QLatin1String("Warning: "), Warning);
m_colorOut.write(scope->baseTypeName()
+ QLatin1String(" was not found."
" Did you add all import paths?\n"));