diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2020-03-16 15:07:04 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-03-17 09:05:09 +0100 |
commit | 1b5a6c19ab701c9b94b1ffb094999c34643bcd1d (patch) | |
tree | 02306d6a6f6e25ac73024f11f19edee2338483b0 /tests/auto/qml/qmllint/tst_qmllint.cpp | |
parent | ebf6bf3b01f312fe066225c67f794f7ab67cb49a (diff) |
qmllint: Don't crash on IDs that aren't scopes
In particular, those can be qualifiers for imports, in which case we
have to combine them with the next segment in order to find the type.
Task-number: QTBUG-82817
Change-Id: I217a79572cd1e160dcbbcb9541c53941c81ab76c
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/qmllint/tst_qmllint.cpp')
-rw-r--r-- | tests/auto/qml/qmllint/tst_qmllint.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/tst_qmllint.cpp b/tests/auto/qml/qmllint/tst_qmllint.cpp index 3e5237aebe..ed401d59e0 100644 --- a/tests/auto/qml/qmllint/tst_qmllint.cpp +++ b/tests/auto/qml/qmllint/tst_qmllint.cpp @@ -194,6 +194,7 @@ void TestQmllint::cleanQmlCode_data() QTest::newRow("AttachedProps") << QStringLiteral("AttachedProps.qml"); QTest::newRow("unknownBuiltinFont") << QStringLiteral("ButtonLoader.qml"); QTest::newRow("confusingImport") << QStringLiteral("Dialog.qml"); + QTest::newRow("qualifiedAttached") << QStringLiteral("Drawer.qml"); } void TestQmllint::cleanQmlCode() |