Changeset View
Changeset View
Standalone View
Standalone View
src/propertyinfo.cpp
Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Line(s) | 45 | switch (property) { | |||
---|---|---|---|---|---|
87 | 87 | | |||
88 | case Property::Comment: | 88 | case Property::Comment: | ||
89 | d->name = QStringLiteral("comment"); | 89 | d->name = QStringLiteral("comment"); | ||
90 | d->displayName = i18nc("@label", "Comment"); | 90 | d->displayName = i18nc("@label", "Comment"); | ||
91 | d->valueType = QVariant::String; | 91 | d->valueType = QVariant::String; | ||
92 | d->shouldBeIndexed = false; | 92 | d->shouldBeIndexed = false; | ||
93 | break; | 93 | break; | ||
94 | 94 | | |||
95 | case Property::Description: | ||||
96 | d->name = QStringLiteral("description"); | ||||
97 | d->displayName = i18nc("@label", "Description"); | ||||
98 | d->valueType = QVariant::String; | ||||
99 | d->shouldBeIndexed = false; | ||||
100 | break; | ||||
101 | | ||||
95 | case Property::Composer: | 102 | case Property::Composer: | ||
96 | d->name = QStringLiteral("composer"); | 103 | d->name = QStringLiteral("composer"); | ||
97 | d->displayName = i18nc("@label", "Composer"); | 104 | d->displayName = i18nc("@label", "Composer"); | ||
98 | d->valueType = QVariant::String; | 105 | d->valueType = QVariant::String; | ||
99 | d->shouldBeIndexed = false; | 106 | d->shouldBeIndexed = false; | ||
100 | break; | 107 | break; | ||
101 | 108 | | |||
102 | case Property::Copyright: | 109 | case Property::Copyright: | ||
▲ Show 20 Lines • Show All 497 Lines • ▼ Show 20 Line(s) | 605 | static QHash<QString, Property::Property> propertyHash = { | |||
600 | { QStringLiteral("channels"), Property::Channels }, | 607 | { QStringLiteral("channels"), Property::Channels }, | ||
601 | { QStringLiteral("duration"), Property::Duration }, | 608 | { QStringLiteral("duration"), Property::Duration }, | ||
602 | { QStringLiteral("genre"), Property::Genre }, | 609 | { QStringLiteral("genre"), Property::Genre }, | ||
603 | { QStringLiteral("samplerate"), Property::SampleRate }, | 610 | { QStringLiteral("samplerate"), Property::SampleRate }, | ||
604 | { QStringLiteral("tracknumber"), Property::TrackNumber }, | 611 | { QStringLiteral("tracknumber"), Property::TrackNumber }, | ||
605 | { QStringLiteral("discnumber"), Property::DiscNumber }, | 612 | { QStringLiteral("discnumber"), Property::DiscNumber }, | ||
606 | { QStringLiteral("releaseyear"), Property::ReleaseYear }, | 613 | { QStringLiteral("releaseyear"), Property::ReleaseYear }, | ||
607 | { QStringLiteral("comment"), Property::Comment }, | 614 | { QStringLiteral("comment"), Property::Comment }, | ||
615 | { QStringLiteral("description"), Property::Description }, | ||||
608 | { QStringLiteral("artist"), Property::Artist }, | 616 | { QStringLiteral("artist"), Property::Artist }, | ||
609 | { QStringLiteral("album"), Property::Album }, | 617 | { QStringLiteral("album"), Property::Album }, | ||
610 | { QStringLiteral("albumartist"), Property::AlbumArtist }, | 618 | { QStringLiteral("albumartist"), Property::AlbumArtist }, | ||
611 | { QStringLiteral("composer"), Property::Composer }, | 619 | { QStringLiteral("composer"), Property::Composer }, | ||
612 | { QStringLiteral("lyricist"), Property::Lyricist }, | 620 | { QStringLiteral("lyricist"), Property::Lyricist }, | ||
613 | { QStringLiteral("location"), Property::Location }, | 621 | { QStringLiteral("location"), Property::Location }, | ||
614 | { QStringLiteral("performer"), Property::Performer }, | 622 | { QStringLiteral("performer"), Property::Performer }, | ||
615 | { QStringLiteral("ensemble"), Property::Ensemble }, | 623 | { QStringLiteral("ensemble"), Property::Ensemble }, | ||
▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines |