Support displaying `TagDataType::DateTimeExpression`

This commit is contained in:
Martchus 2022-08-13 15:33:55 +02:00
parent 823b59b8b6
commit 82537e5bff
3 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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();

View File

@ -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:;
}