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 <>
Reviewed-by: default avatarhjk <>
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"));
......@@ -219,6 +221,10 @@ bool ResourceFile::save()
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;
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