aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcachegen/data/componentInItem.qml
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2019-03-21 16:25:55 +0100
committerUlf Hermann <ulf.hermann@qt.io>2019-03-21 16:29:29 +0000
commit497a795081b95d487f0ec33746cc2a12ffeae5a0 (patch)
tree15b297948133b9de60c7a8b77fe612b8fe4398c3 /tests/auto/qml/qmlcachegen/data/componentInItem.qml
parent9ce826901bffd3b63d23a61babdc667c3f8ec567 (diff)
Initialize TranslationData padding before writing cache files
Otherwise the resulting files differ subtly. Fixes: QTBUG-74532 Change-Id: I12b4f1ba6dda781d63ad50cce87861ba24582bf7 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlcachegen/data/componentInItem.qml')
-rw-r--r--tests/auto/qml/qmlcachegen/data/componentInItem.qml15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcachegen/data/componentInItem.qml b/tests/auto/qml/qmlcachegen/data/componentInItem.qml
new file mode 100644
index 0000000000..820b9fddcd
--- /dev/null
+++ b/tests/auto/qml/qmlcachegen/data/componentInItem.qml
@@ -0,0 +1,15 @@
+import QtQuick 2.12
+
+Item {
+ Component {
+ Rectangle {
+ id: xxx
+ Text {
+ text: qsTr("&Undo")
+ }
+ Text {
+ text: qsTr("&Redo")
+ }
+ }
+ }
+}