diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2020-10-02 11:17:29 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-10-02 15:31:59 +0200 |
commit | febb6ba891616b71476b736d4c583054685c7766 (patch) | |
tree | 4a9be0ab41fcb3f844d6460497da2448f78fd9b3 /tests/auto/qml/qmllint/data | |
parent | b1afde8ada7959b29acb4ac0fae87d7a8ae8aa08 (diff) |
qmllint: Fix updating of parent property
We need to check for the baseTypeName, not for the internalName. Also,
this is not really the scope's business but a property of how qmllint
sets up its scopes.
Task-number: QTBUG-87116
Change-Id: I8f0e558a4a5861164c6e85f90e3d88e469ea0769
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Evgeniy Dushistov <dushistov@mail.ru>
Diffstat (limited to 'tests/auto/qml/qmllint/data')
-rw-r--r-- | tests/auto/qml/qmllint/data/anchors2.qml | 6 | ||||
-rw-r--r-- | tests/auto/qml/qmllint/data/nanchors2.qml | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/data/anchors2.qml b/tests/auto/qml/qmllint/data/anchors2.qml new file mode 100644 index 0000000000..8918cf01d4 --- /dev/null +++ b/tests/auto/qml/qmllint/data/anchors2.qml @@ -0,0 +1,6 @@ +import QtQuick 2.15 + +Rectangle { + anchors.horizontalCenter: parent.horizontalCenter + anchors.verticalCenter: parent.verticalCenter +} diff --git a/tests/auto/qml/qmllint/data/nanchors2.qml b/tests/auto/qml/qmllint/data/nanchors2.qml new file mode 100644 index 0000000000..99ac9e7dff --- /dev/null +++ b/tests/auto/qml/qmllint/data/nanchors2.qml @@ -0,0 +1,6 @@ +import QtQuick 2.15 + +Rectangle { + nanchors.horizontalCenter: parent.horizontalCenter + nanchors.verticalCenter: parent.verticalCenter +} |