diff options
author | Tarja Sundqvist <[email protected]> | 2025-06-03 13:43:35 +0300 |
---|---|---|
committer | Tarja Sundqvist <[email protected]> | 2025-06-03 13:43:35 +0300 |
commit | 0f0972d542d9869c2dcfaf9c963d42ff32766460 (patch) | |
tree | f283360ffbf0453e04a321e01f0c3df1c07df3e3 /tests/auto/qml/qmlcppcodegen/data/childobject.qml | |
parent | 07e23b0f4983631524716f034c0268fd11d037f9 (diff) | |
parent | ff0a47c8f267e905113b82c53af2742027f0eca6 (diff) |
Merge tag 'v6.5.6-lts-lgpl' into 6.56.5
Qt 6.5.6-lts-lgpl release
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/data/childobject.qml')
-rw-r--r-- | tests/auto/qml/qmlcppcodegen/data/childobject.qml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/data/childobject.qml b/tests/auto/qml/qmlcppcodegen/data/childobject.qml index db6b910ec2..76ad8fbbb2 100644 --- a/tests/auto/qml/qmlcppcodegen/data/childobject.qml +++ b/tests/auto/qml/qmlcppcodegen/data/childobject.qml @@ -8,6 +8,14 @@ QtObject { function doString() { overloaded("string"); } function doNumber() { overloaded(5.2); } function doArray() { overloaded({a: 2, b: 3, c: 3}); } + + function doString2() { overloaded2("string"); } + function doNumber2() { overloaded2(5.2); } + + // Artificially pass an extra argument to avoid choosing the "string" overload. + // Unfortunately this is still order-dependent on the metaobject level. + function doArray2() { overloaded2({a: 2, b: 3, c: 3}, 1); } + function doFoo() { foo(this); } } objectName: child.objectName |