From 521f826ad9fdbe791ab4bdbb962dbfe116e8c938 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Fri, 4 Dec 2009 00:18:24 +0000 Subject: Minor adjustments for searching: at least searching for tags works now again :-) svn path=/trunk/KDE/kdebase/apps/; revision=1058137 --- src/search/searchcriterionselector.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/search/searchcriterionselector.cpp') diff --git a/src/search/searchcriterionselector.cpp b/src/search/searchcriterionselector.cpp index ab447bb83..f9c122d46 100644 --- a/src/search/searchcriterionselector.cpp +++ b/src/search/searchcriterionselector.cpp @@ -210,12 +210,16 @@ void SearchCriterionSelector::createDescriptions() QList tagComps; tagComps.append(SearchCriterionDescription::Comparator(i18nc("@label All (tags)", "All"))); tagComps.append(SearchCriterionDescription::Comparator(i18nc("@label", "Equal to"), Nepomuk::Query::ComparisonTerm::Equal)); - tagComps.append(SearchCriterionDescription::Comparator(i18nc("@label", "Not Equal to"), Nepomuk::Query::ComparisonTerm::Equal)); // TODO + // It is unclear yet how to express != for tags with the new Nepomuk query API. Disable it for KDE 4.4, + // but leave the translation string there to be able to enable this functionality for KDE 4.4.x: + const QString dummy = i18nc("@label", "Not Equal to"); + Q_UNUSED(dummy); + //tagComps.append(SearchCriterionDescription::Comparator(i18nc("@label", "Not Equal to"), Nepomuk::Query::ComparisonTerm::Equal)); // TODO TagValue* tagValue = new TagValue(this); tagValue->hide(); SearchCriterionDescription tag(i18nc("@label", "Tag:"), - Soprano::Vocabulary::NAO::Tag(), + Soprano::Vocabulary::NAO::hasTag(), tagComps, tagValue); Q_ASSERT(static_cast(SearchCriterionSelector::Tag) == 2); -- cgit v1.3