Add tag doc_name_ws_lc, rename doc_name_ws_caps to doc_name_ws_uc

This commit is contained in:
Vladimir
2021-12-27 11:46:35 +05:00
parent e555057f35
commit 1708998eca
5 changed files with 10 additions and 5 deletions

View File

@@ -227,7 +227,8 @@ QString ImageDocument::convert(Settings::Presets::Preset *preset)
tags.setTagValue(Parsing::TagsList::Tag::DocumentName, this->documentName());
tags.setTagValue(Parsing::TagsList::Tag::DocumentNameWithoutSpaces, this->documentName().remove(QRegExp("\\W", Qt::CaseInsensitive)));
tags.setTagValue(Parsing::TagsList::Tag::DocumentNameWithoutSpacesCaps, this->documentName().remove(QRegExp("\\W", Qt::CaseInsensitive)).toUpper());
tags.setTagValue(Parsing::TagsList::Tag::DocumentNameWithoutSpacesUpperCase, this->documentName().remove(QRegExp("\\W", Qt::CaseInsensitive)).toUpper());
tags.setTagValue(Parsing::TagsList::Tag::DocumentNameWithoutSpacesLowerCase, this->documentName().remove(QRegExp("\\W", Qt::CaseInsensitive)).toLower());
tags.setTagValue(Parsing::TagsList::Tag::DocumentDataType, "image");