diff options
author | Eike Ziller <eike.ziller@qt.io> | 2021-05-19 09:54:07 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2021-05-19 09:54:07 +0200 |
commit | f83be6debe8fcf4a635fae0e755776fd12f85dae (patch) | |
tree | fbf56dfee3c9142c0d1f3c7ad0718a8697d2d1b6 /src/plugins/resourceeditor/qrceditor/resourcefile.cpp | |
parent | c49a0af5046157039da2194723e0fc4dd48956f5 (diff) | |
parent | 801dbdf9324a67462eb6756f4ea49b31ae2074bb (diff) |
Merge remote-tracking branch 'origin/4.15'
Change-Id: Ia6558fc2423fd9cd84ca2282bfa60d102dff682e
Diffstat (limited to 'src/plugins/resourceeditor/qrceditor/resourcefile.cpp')
-rw-r--r-- | src/plugins/resourceeditor/qrceditor/resourcefile.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/resourceeditor/qrceditor/resourcefile.cpp b/src/plugins/resourceeditor/qrceditor/resourcefile.cpp index a16223eb60..9cb8dd1e79 100644 --- a/src/plugins/resourceeditor/qrceditor/resourcefile.cpp +++ b/src/plugins/resourceeditor/qrceditor/resourcefile.cpp @@ -190,6 +190,7 @@ Core::IDocument::OpenResult ResourceFile::load() const QString alias = felt.attribute(QLatin1String("alias")); File * const file = new File(p, fileName, alias); file->compress = felt.attribute(QLatin1String("compress")); + file->compressAlgo = felt.attribute(QLatin1String("compress-algo")); file->threshold = felt.attribute(QLatin1String("threshold")); p->file_list.append(file); } @@ -226,6 +227,8 @@ QString ResourceFile::contents() const felt.setAttribute(QLatin1String("alias"), file.alias); if (!file.compress.isEmpty()) felt.setAttribute(QLatin1String("compress"), file.compress); + if (!file.compressAlgo.isEmpty()) + felt.setAttribute(QLatin1String("compress-algo"), file.compressAlgo); if (!file.threshold.isEmpty()) felt.setAttribute(QLatin1String("threshold"), file.threshold); } |