diff options
author | Maximilian Goldstein <max.goldstein@qt.io> | 2020-06-24 13:05:55 +0200 |
---|---|---|
committer | Maximilian Goldstein <max.goldstein@qt.io> | 2020-06-25 09:02:08 +0200 |
commit | 88b3d1fd26b6b566ef00ae728051bff29455eea5 (patch) | |
tree | 3c84fb5d9820f955051c6b3fcbce9065ce585e48 /tests/auto/qml/qmlformat/data | |
parent | dd71c43b9718be3523ed6b307a3402f88de070e1 (diff) |
qmlformat: Fix inline components
Fixes: QTBUG-85189
Change-Id: I2b30595b44d14b89406b126d3d148f51f8bfbca4
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlformat/data')
-rw-r--r-- | tests/auto/qml/qmlformat/data/inlineComponents.formatted.qml | 10 | ||||
-rw-r--r-- | tests/auto/qml/qmlformat/data/inlineComponents.qml | 6 |
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlformat/data/inlineComponents.formatted.qml b/tests/auto/qml/qmlformat/data/inlineComponents.formatted.qml new file mode 100644 index 0000000000..5349280f2b --- /dev/null +++ b/tests/auto/qml/qmlformat/data/inlineComponents.formatted.qml @@ -0,0 +1,10 @@ +Item { + component CustomText: Text { + Text { + color: "red" + text: "Test Text" + } + + } + +} diff --git a/tests/auto/qml/qmlformat/data/inlineComponents.qml b/tests/auto/qml/qmlformat/data/inlineComponents.qml new file mode 100644 index 0000000000..6eeb3dd965 --- /dev/null +++ b/tests/auto/qml/qmlformat/data/inlineComponents.qml @@ -0,0 +1,6 @@ +Item { +component CustomText: Text { +color: "red" +text: "Test Text" +} +} |