summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/elf
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-01-02 09:54:49 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-01-02 09:54:49 -0600
commitc5bca102dd4e45626e1e76b0684ef065935918ed (patch)
tree5f13e0b27facb5e725d31e13e4b77977bb2d76c5 /kfile-plugins/elf
parent6ddacfff536fc6fcedff929b315fd43c494bb02c (diff)
downloadtdelibs-c5bca102dd4e45626e1e76b0684ef065935918ed.tar.gz
tdelibs-c5bca102dd4e45626e1e76b0684ef065935918ed.zip
Add preferred icon metadata field
Diffstat (limited to 'kfile-plugins/elf')
-rw-r--r--kfile-plugins/elf/kfile_elf.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/kfile-plugins/elf/kfile_elf.cpp b/kfile-plugins/elf/kfile_elf.cpp
index c657d245b..a26a6804b 100644
--- a/kfile-plugins/elf/kfile_elf.cpp
+++ b/kfile-plugins/elf/kfile_elf.cpp
@@ -97,6 +97,7 @@ KElfPlugin::KElfPlugin(TQObject *parent, const char *name,
item = addItemInfo(group, "Organization", i18n("Organization"), TQVariant::String);
item = addItemInfo(group, "Version", i18n("Version"), TQVariant::String);
item = addItemInfo(group, "DateTime", i18n("Creation Date/Time"), TQVariant::String);
+ item = addItemInfo(group, "SystemIcon", i18n("Requested Icon"), TQVariant::String);
item = addItemInfo(group, "Notes", i18n("Comments"), TQVariant::String);
item = addItemInfo(group2, "EmbeddedIcon", i18n("Icon Name(s)"), TQVariant::String);
@@ -126,6 +127,7 @@ bool KElfPlugin::readInfo( KFileMetaInfo& info, uint what)
appendItem(group, "Organization", elf_get_resource(handle, ".metadata_organization"));
appendItem(group, "Version", elf_get_resource(handle, ".metadata_version"));
appendItem(group, "DateTime", elf_get_resource(handle, ".metadata_datetime"));
+ appendItem(group, "SystemIcon", elf_get_resource(handle, ".metadata_sysicon"));
appendItem(group, "Notes", elf_get_resource(handle, ".metadata_notes"));
TQString iconListing;
@@ -143,7 +145,7 @@ bool KElfPlugin::readInfo( KFileMetaInfo& info, uint what)
iconListing = entry->name;
}
else {
- iconListing = iconListing.append("<p>").append(entry->name);
+ iconListing = iconListing.append("\n").append(entry->name);
}
break;
}