Bug 133955 - rating search: less, equal, and larger comparison
Summary: rating search: less, equal, and larger comparison
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Searches-Labels (show other bugs)
Version: unspecified
Platform: Debian stable Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-12 13:25 UTC by Arnd Baecker
Modified: 2017-08-18 09:45 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 0.9.1


Attachments
patch for rating search (2.58 KB, patch)
2007-01-04 10:58 UTC, Arnd Baecker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arnd Baecker 2006-09-12 13:25:17 UTC
Version:            (using KDE KDE 3.4.2KDE 1.2)
Installed from:    Debian stable PackagesDebian stable Packages
OS:                Linux

Doing an Advanced Search for
"Rating" "Higher than" "******"
will not produce any results as presently 5 is the maximum.

This could be solved (and enhanced) by ">=",  "="  and "<=" as possible choices in the comparison.

Arnd
Comment 1 Arnd Baecker 2007-01-04 10:57:08 UTC
Attached is a patch which should solve this issue.
In addition it provides "<=" and ">="
(which were essentially already present in the source (for ">" and "<"),
but RuleOpTableCount did not match with the number of items.
Adding ">=" required to add GTE and LTE, also in 
the kioslave/digikamsearch part.

Best, Arnd
Comment 2 Arnd Baecker 2007-01-04 10:58:03 UTC
Created attachment 19098 [details]
patch for rating search
Comment 3 caulier.gilles 2007-01-04 11:22:39 UTC
Arn,

Thanks for the patch. Really appreciate !

Marcel, the patch sound fine for me. What do you think about ?

Gilles
Comment 4 Marcel Wiesweg 2007-01-04 12:37:57 UTC
Yes it seems fine to me.
Comment 5 caulier.gilles 2007-01-04 13:09:00 UTC
SVN commit 619777 by cgilles:

digiKam from trunk : patch from Arnd Baecker to use less, equal, and larger comparison with rating search in image collection.
BUG: 133955



 M  +12 -23    digikam/searchwidgets.cpp  
 M  +3 -4      digikam/searchwidgets.h  
 M  +189 -160  kioslave/digikamsearch.cpp  
 M  +16 -11    kioslave/digikamsearch.h