From 82537e5bff492912063c729e7ac89134517fa693 Mon Sep 17 00:00:00 2001 From: Martchus Date: Sat, 13 Aug 2022 15:33:55 +0200 Subject: [PATCH] Support displaying `TagDataType::DateTimeExpression` --- CMakeLists.txt | 2 +- gui/tagfieldedit.cpp | 2 ++ misc/utility.cpp | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 476564c..fd5c728 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 diff --git a/gui/tagfieldedit.cpp b/gui/tagfieldedit.cpp index ac0ddc6..259ec04 100644 --- a/gui/tagfieldedit.cpp +++ b/gui/tagfieldedit.cpp @@ -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(); diff --git a/misc/utility.cpp b/misc/utility.cpp index 5400617..a1f2850 100644 --- a/misc/utility.cpp +++ b/misc/utility.cpp @@ -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:; }