Commit 34d7ccfa authored by Daniel Teske's avatar Daniel Teske

ResourceEditor: Keep compress and threshold attributes

These aren't editable but at least keep them the same.

Change-Id: I75a907c9523766de2ee671f150b1180ab60cfae9
Reviewed-by: default avatarJarek Kobus <jaroslaw.kobus@digia.com>
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 354559aa
......@@ -166,6 +166,8 @@ bool ResourceFile::load()
const QString fileName = absolutePath(felt.text());
const QString alias = felt.attribute(QLatin1String("alias"));
File * const file = new File(p, fileName, alias);
file->compress = felt.attribute(QLatin1String("compress"));
file->threshold = felt.attribute(QLatin1String("threshold"));
p->file_list.append(file);
}
}
......@@ -219,6 +221,10 @@ bool ResourceFile::save()
felt.appendChild(text);
if (!file.alias.isEmpty())
felt.setAttribute(QLatin1String("alias"), file.alias);
if (!file.compress.isEmpty())
felt.setAttribute(QLatin1String("compress"), file.compress);
if (!file.threshold.isEmpty())
felt.setAttribute(QLatin1String("threshold"), file.threshold);
}
}
......
......@@ -84,6 +84,10 @@ public:
QString alias;
QIcon icon;
// not used, only loaded and saved
QString compress;
QString threshold;
private:
bool m_checked;
bool m_exists;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment