Changeset View
Changeset View
Standalone View
Standalone View
src/propertyinfo.cpp
Show First 20 Lines • Show All 407 Lines • ▼ Show 20 Line(s) | 404 | case Property::License: | |||
---|---|---|---|---|---|
408 | break; | 408 | break; | ||
409 | 409 | | |||
410 | case Property::Opus: | 410 | case Property::Opus: | ||
411 | d->name = QStringLiteral("opus"); | 411 | d->name = QStringLiteral("opus"); | ||
412 | d->displayName = i18nc("@label", "Opus"); | 412 | d->displayName = i18nc("@label", "Opus"); | ||
413 | d->valueType = QVariant::Int; | 413 | d->valueType = QVariant::Int; | ||
414 | break; | 414 | break; | ||
415 | 415 | | |||
416 | case Property::Rating: | ||||
417 | d->name = QStringLiteral("embeddedRating"); | ||||
418 | d->displayName = i18nc("@label", "Rating"); | ||||
419 | d->valueType = QVariant::Int; | ||||
420 | break; | ||||
421 | | ||||
416 | case Property::Width: | 422 | case Property::Width: | ||
417 | d->name = QStringLiteral("width"); | 423 | d->name = QStringLiteral("width"); | ||
418 | d->displayName = i18nc("@label", "Width"); | 424 | d->displayName = i18nc("@label", "Width"); | ||
419 | d->valueType = QVariant::Int; | 425 | d->valueType = QVariant::Int; | ||
420 | break; | 426 | break; | ||
421 | 427 | | |||
422 | case Property::WordCount: | 428 | case Property::WordCount: | ||
423 | d->name = QStringLiteral("wordCount"); | 429 | d->name = QStringLiteral("wordCount"); | ||
▲ Show 20 Lines • Show All 151 Lines • ▼ Show 20 Line(s) | 568 | static QHash<QString, Property::Property> propertyHash = { | |||
575 | { QStringLiteral("composer"), Property::Composer }, | 581 | { QStringLiteral("composer"), Property::Composer }, | ||
576 | { QStringLiteral("lyricist"), Property::Lyricist }, | 582 | { QStringLiteral("lyricist"), Property::Lyricist }, | ||
577 | { QStringLiteral("location"), Property::Location }, | 583 | { QStringLiteral("location"), Property::Location }, | ||
578 | { QStringLiteral("performer"), Property::Performer }, | 584 | { QStringLiteral("performer"), Property::Performer }, | ||
579 | { QStringLiteral("ensemble"), Property::Ensemble }, | 585 | { QStringLiteral("ensemble"), Property::Ensemble }, | ||
580 | { QStringLiteral("arranger"), Property::Arranger }, | 586 | { QStringLiteral("arranger"), Property::Arranger }, | ||
581 | { QStringLiteral("conductor"), Property::Conductor }, | 587 | { QStringLiteral("conductor"), Property::Conductor }, | ||
582 | { QStringLiteral("opus"), Property::Opus }, | 588 | { QStringLiteral("opus"), Property::Opus }, | ||
589 | { QStringLiteral("embeddedrating"), Property::Rating }, | ||||
583 | { QStringLiteral("author"), Property::Author }, | 590 | { QStringLiteral("author"), Property::Author }, | ||
584 | { QStringLiteral("title"), Property::Title }, | 591 | { QStringLiteral("title"), Property::Title }, | ||
585 | { QStringLiteral("subject"), Property::Subject }, | 592 | { QStringLiteral("subject"), Property::Subject }, | ||
586 | { QStringLiteral("generator"), Property::Generator }, | 593 | { QStringLiteral("generator"), Property::Generator }, | ||
587 | { QStringLiteral("pagecount"), Property::PageCount }, | 594 | { QStringLiteral("pagecount"), Property::PageCount }, | ||
588 | { QStringLiteral("wordcount"), Property::WordCount }, | 595 | { QStringLiteral("wordcount"), Property::WordCount }, | ||
589 | { QStringLiteral("linecount"), Property::LineCount }, | 596 | { QStringLiteral("linecount"), Property::LineCount }, | ||
590 | { QStringLiteral("language"), Property::Langauge }, | 597 | { QStringLiteral("language"), Property::Langauge }, | ||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |