diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2018-04-26 15:05:14 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2018-04-27 05:22:25 +0000 |
commit | 3d80bbb6b47bc524f8243de26ff181026e8fc52d (patch) | |
tree | b714a387e20053f4aa7a3bc0e55fa571dc1c59ba /tests/auto/qml/qqmlinfo/data/Component.qml | |
parent | f6bbeeb417102c61e8bf23f41e412ed9753a348d (diff) |
Fix qmlInfo and friends for anonymous components
When used on for example delegates we can and should also print the line
number and column where the component is declared.
Change-Id: I0f02c675425700cde119352d0001895cc31a4c73
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Reviewed-by: Michael Brasser <michael.brasser@live.com>
Diffstat (limited to 'tests/auto/qml/qqmlinfo/data/Component.qml')
-rw-r--r-- | tests/auto/qml/qqmlinfo/data/Component.qml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlinfo/data/Component.qml b/tests/auto/qml/qqmlinfo/data/Component.qml new file mode 100644 index 0000000000..fefbbfae76 --- /dev/null +++ b/tests/auto/qml/qqmlinfo/data/Component.qml @@ -0,0 +1,8 @@ +import QtQml 2.0 + +QtObject { + property Component delegate: Component { + QtObject { + } + } +} |