diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2019-03-21 16:25:55 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2019-03-21 16:29:29 +0000 |
commit | 497a795081b95d487f0ec33746cc2a12ffeae5a0 (patch) | |
tree | 15b297948133b9de60c7a8b77fe612b8fe4398c3 /tests/auto/qml/qmlcachegen/data/Enums.qml | |
parent | 9ce826901bffd3b63d23a61babdc667c3f8ec567 (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/Enums.qml')
-rw-r--r-- | tests/auto/qml/qmlcachegen/data/Enums.qml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcachegen/data/Enums.qml b/tests/auto/qml/qmlcachegen/data/Enums.qml new file mode 100644 index 0000000000..830babb73e --- /dev/null +++ b/tests/auto/qml/qmlcachegen/data/Enums.qml @@ -0,0 +1,9 @@ +import QtQml 2.0 +QtObject { + enum Test { + First = 100, + Second = 200 + } + property int value: 0 + Component.onCompleted: value = Enums.Second +} |