Support displaying `TagDataType::DateTimeExpression`
This commit is contained in:
parent
823b59b8b6
commit
82537e5bff
|
@ -200,7 +200,7 @@ if (WIDGETS_GUI OR QUICK_GUI)
|
|||
endif ()
|
||||
|
||||
# find tagparser
|
||||
find_package(tagparser${CONFIGURATION_PACKAGE_SUFFIX} 11.3.0 REQUIRED)
|
||||
find_package(tagparser${CONFIGURATION_PACKAGE_SUFFIX} 11.5.0 REQUIRED)
|
||||
use_tag_parser()
|
||||
|
||||
# enable experimental JSON export
|
||||
|
|
|
@ -124,6 +124,7 @@ TagValue TagFieldEdit::value(TagTextEncoding encoding, bool includeDescription)
|
|||
case TagDataType::TimeSpan:
|
||||
case TagDataType::DateTime:
|
||||
case TagDataType::Popularity:
|
||||
case TagDataType::DateTimeExpression:
|
||||
switch (m_field) {
|
||||
case KnownField::Genre:
|
||||
if (m_comboBox) {
|
||||
|
@ -287,6 +288,7 @@ void TagFieldEdit::setupUi()
|
|||
case TagDataType::TimeSpan:
|
||||
case TagDataType::DateTime:
|
||||
case TagDataType::Popularity:
|
||||
case TagDataType::DateTimeExpression:
|
||||
switch (m_field) {
|
||||
case KnownField::Genre:
|
||||
setupGenreComboBox();
|
||||
|
|
|
@ -62,6 +62,7 @@ QString tagValueToQString(const TagValue &value)
|
|||
case TagDataType::DateTime:
|
||||
case TagDataType::PositionInSet:
|
||||
case TagDataType::Popularity:
|
||||
case TagDataType::DateTimeExpression:
|
||||
return QString::fromStdString(value.toString());
|
||||
default:;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue