From c5bca102dd4e45626e1e76b0684ef065935918ed Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 2 Jan 2012 09:54:49 -0600 Subject: Add preferred icon metadata field --- kfile-plugins/elf/kfile_elf.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'kfile-plugins/elf') 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("

").append(entry->name); + iconListing = iconListing.append("\n").append(entry->name); } break; } -- cgit v1.2.1