diff options
| author | Sami Shalayel <sami.shalayel@qt.io> | 2024-07-19 15:17:01 +0200 |
|---|---|---|
| committer | Sami Shalayel <sami.shalayel@qt.io> | 2024-08-08 11:39:33 +0200 |
| commit | 45c21c39f0f65fb72759455945a4f8fd480b02ca (patch) | |
| tree | 79019c22b4f8a66f28775d6495e14fbc8afa0629 /tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp | |
| parent | 42ff1f8bf42be9d82afb3bca262acfeee1f2555d (diff) | |
qmllint/quick: rename attached type warnings to be uniform
Rename runtime warnings and qmllint warnings to be uniform, instead of
having many different formulations for the same problem.
This makes it easier to document them, at least for the qmllint warning
documentation.
Pick-to: 6.7 6.8
Task-number: QTBUG-118112
Change-Id: Iabb3a5fb0679523764b9f2fe2d99f4eb93a13c88
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp')
| -rw-r--r-- | tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp index e5e30e0210..c456376cfe 100644 --- a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp +++ b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp @@ -1633,7 +1633,7 @@ void tst_QmlCppCodegen::enums() QVERIFY2(!component.isError(), component.errorString().toUtf8()); QTest::ignoreMessage(QtWarningMsg, "qrc:/qt/qml/TestTypes/Enums.qml:4:1: " - "QML Enums: Layout must be attached to Item elements"); + "QML Enums: Layout attached property must be attached to an object deriving from Item"); QScopedPointer<QObject> object(component.create()); QVERIFY(!object.isNull()); @@ -1678,7 +1678,7 @@ void tst_QmlCppCodegen::enumsInOtherObject() { QQmlEngine engine; QTest::ignoreMessage(QtWarningMsg, "qrc:/qt/qml/TestTypes/enumsInOtherObject.qml:4:25: " - "QML Enums: Layout must be attached to Item elements"); + "QML Enums: Layout attached property must be attached to an object deriving from Item"); QQmlComponent component(&engine, QUrl(u"qrc:/qt/qml/TestTypes/enumsInOtherObject.qml"_s)); QVERIFY2(!component.isError(), component.errorString().toUtf8()); QScopedPointer<QObject> object(component.create()); |
