aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/data/urlString.qml
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2023-11-21 17:44:26 +0100
committerUlf Hermann <ulf.hermann@qt.io>2023-11-23 18:58:37 +0100
commit1a8911a13d47ef6a1e903ff414d6a12605cfda30 (patch)
tree5ce4b53c1d6ec21fc52b2d5767cd04a8af1f35f8 /tests/auto/qml/qmlcppcodegen/data/urlString.qml
parent8d7f18ec44dadc3085afdcc808713292b709ed39 (diff)
QmlCompiler: Don't generate invalid code for argument conversion
We need an additional pair of parentheses here. Pick-to: 6.6 6.5 6.2 Fixes: QTBUG-119165 Change-Id: I0d8e810ebb5baad35e2cc1bc5c6581d1ba180dc8 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/data/urlString.qml')
-rw-r--r--tests/auto/qml/qmlcppcodegen/data/urlString.qml7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/data/urlString.qml b/tests/auto/qml/qmlcppcodegen/data/urlString.qml
index 511c54532c..a83855ebdb 100644
--- a/tests/auto/qml/qmlcppcodegen/data/urlString.qml
+++ b/tests/auto/qml/qmlcppcodegen/data/urlString.qml
@@ -9,5 +9,12 @@ QtObject {
Component.onCompleted: {
c = "http://dddddd.com";
self.d = "http://aaaaaa.com";
+ myUrlChanged(c)
+ }
+
+ signal myUrlChanged(urlParam: url)
+
+ onMyUrlChanged: (urlParam) => {
+ objectName = urlParam;
}
}