diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2019-06-20 14:26:15 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2020-01-15 12:36:59 -0800 |
commit | bd828bacb982a51ee21f03487f8390cfc96cc6d3 (patch) | |
tree | bc1e07bae55b875d9f6aa3f87100ccb0c35bde75 /tests/auto/corelib/io/qresourceengine/generateResources.sh | |
parent | c4b71844f779370ced5e3b959e20bac068963313 (diff) |
QResource: Add API to get the decompressed content
[ChangeLog][QtCore][QResource] Added uncompressedSize() and
uncompressedData(), which will perform any required decompression on the
data, prior to returning (unlike data() and size()).
Change-Id: Ief874765cd7b43798de3fffd15aa053bc505dcb1
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'tests/auto/corelib/io/qresourceengine/generateResources.sh')
-rwxr-xr-x | tests/auto/corelib/io/qresourceengine/generateResources.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/corelib/io/qresourceengine/generateResources.sh b/tests/auto/corelib/io/qresourceengine/generateResources.sh new file mode 100755 index 0000000000..9894f6bfb7 --- /dev/null +++ b/tests/auto/corelib/io/qresourceengine/generateResources.sh @@ -0,0 +1,7 @@ +#!/bin/sh +count=`awk '/ZERO_FILE_LEN/ { print $3 }' tst_qresourceengine.cpp` +dd if=/dev/zero of=zero.txt bs=1 count=$count +rcc --binary -o uncompressed.rcc --no-compress compressed.qrc +rcc --binary -o zlib.rcc --compress-algo zlib --compress 9 compressed.qrc +rcc --binary -o zstd.rcc --compress-algo zstd --compress 19 compressed.qrc +rm zero.txt |