aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlformat/data/largeBindings.qml
diff options
context:
space:
mode:
authorMaximilian Goldstein <max.goldstein@qt.io>2020-07-01 12:15:15 +0200
committerMaximilian Goldstein <max.goldstein@qt.io>2020-07-02 10:51:39 +0200
commite9d03ec78fd95d10e9d9653c1f3d6dc5433de433 (patch)
treea7e1427ce81a937f1def1d8c93f7c0b40ab0c54c /tests/auto/qml/qmlformat/data/largeBindings.qml
parent05daefeb27e301a29990e8a97a8c8dec70b4a44c (diff)
qmlformat: Fix multiline bindings
Some bindings may turn multiline while formatting. This change makes sure this is handled properly. Fixes: QTBUG-85289 Change-Id: I6df98b926d69a23480003c3d9705bc34c3dd0d5d Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 38e0b279d9c36d029918a2d86575050d13778d86)
Diffstat (limited to 'tests/auto/qml/qmlformat/data/largeBindings.qml')
-rw-r--r--tests/auto/qml/qmlformat/data/largeBindings.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlformat/data/largeBindings.qml b/tests/auto/qml/qmlformat/data/largeBindings.qml
new file mode 100644
index 0000000000..7bbc365c13
--- /dev/null
+++ b/tests/auto/qml/qmlformat/data/largeBindings.qml
@@ -0,0 +1,4 @@
+QtObject
+{
+ smallButNeedsBraces: if (foo) { bar(); }
+}