diff options
| author | Ulf Hermann <ulf.hermann@qt.io> | 2024-05-22 16:33:47 +0200 |
|---|---|---|
| committer | Ulf Hermann <ulf.hermann@qt.io> | 2024-05-25 08:11:24 +0200 |
| commit | ed61e7c6d2ae80935b02c6eedc293e3b875520d7 (patch) | |
| tree | f1f39767b7c97608a45f42192e0efb475dd6fb20 /tests/auto/qml/qmlcppcodegen/data/writeVariantMap.qml | |
| parent | 7bdeea2c309150c8b49558b135232926d6a89c50 (diff) | |
QmlCompiler: Explicitly cast operations that result in QString
We may be using QStringBuilder, and that can be stored in QVariant (and
possibly other places).
Fixes: QTBUG-125576
Change-Id: Ib31e31591a3333e51f1d5594ee05fdb8f0744714
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/data/writeVariantMap.qml')
| -rw-r--r-- | tests/auto/qml/qmlcppcodegen/data/writeVariantMap.qml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/data/writeVariantMap.qml b/tests/auto/qml/qmlcppcodegen/data/writeVariantMap.qml new file mode 100644 index 0000000000..536e53b408 --- /dev/null +++ b/tests/auto/qml/qmlcppcodegen/data/writeVariantMap.qml @@ -0,0 +1,10 @@ +pragma Strict +import StringBuilderTestTypes + +WritableVariantMap { + id: dragSource + property string modelData: "Drag Me" + data: ({ + "text/plain": "%" + dragSource.modelData + "%" + }) +} |
