diff --git a/src/properties.h b/src/properties.h --- a/src/properties.h +++ b/src/properties.h @@ -82,8 +82,8 @@ ReleaseYear, /** - * Represents the Comment or Description stored in the file. This can map - * to the 'dc:description' tag from DublinCore or the "COMM" field from IDv3 + * Represents a comment stored in the file. This can map + * to e.g. the "COMM" field from IDv3 */ Comment, @@ -349,6 +349,12 @@ */ ReplayGainTrackGain, + /** + * Represents the description stored in the file. This maps + * to the 'dc:description' tag from DublinCore + */ + Description, + PropertyCount, LastProperty = PropertyCount-1, diff --git a/src/propertyinfo.cpp b/src/propertyinfo.cpp --- a/src/propertyinfo.cpp +++ b/src/propertyinfo.cpp @@ -92,6 +92,13 @@ d->shouldBeIndexed = false; break; + case Property::Description: + d->name = QStringLiteral("description"); + d->displayName = i18nc("@label", "Description"); + d->valueType = QVariant::String; + d->shouldBeIndexed = false; + break; + case Property::Composer: d->name = QStringLiteral("composer"); d->displayName = i18nc("@label", "Composer"); @@ -605,6 +612,7 @@ { QStringLiteral("discnumber"), Property::DiscNumber }, { QStringLiteral("releaseyear"), Property::ReleaseYear }, { QStringLiteral("comment"), Property::Comment }, + { QStringLiteral("description"), Property::Description }, { QStringLiteral("artist"), Property::Artist }, { QStringLiteral("album"), Property::Album }, { QStringLiteral("albumartist"), Property::AlbumArtist },