- // add "File Size" description
- FileSizeValue* fileSizeValue = new FileSizeValue(this);
- fileSizeValue->hide();
- SearchCriterionDescription size(i18nc("@label", "File Size"),
+ // add "Tag" description
+ QList<SearchCriterionDescription::Comparator> tagComps;
+ tagComps.append(SearchCriterionDescription::Comparator(i18nc("@label All (tags)", "All")));
+ tagComps.append(SearchCriterionDescription::Comparator(i18nc("@label", "Equal to"), "=="));
+
+ TagValue* tagValue = new TagValue(this);
+ tagValue->hide();
+ SearchCriterionDescription tag(i18nc("@label", "Tag"),
+ "tag",
+ tagComps,
+ tagValue);
+
+ // add "Size" description
+ QList<SearchCriterionDescription::Comparator> sizeComps = defaultComps;
+ sizeComps.insert(0, SearchCriterionDescription::Comparator(i18nc("@label Any (file size)", "Any")));
+
+ SizeValue* sizeValue = new SizeValue(this);
+ sizeValue->hide();
+ SearchCriterionDescription size(i18nc("@label", "Size"),