[Digikam-devel] [Bug 162206] WISH: case sensitivity in the text quick filter

Arnd Baecker arnd.baecker at web.de
Sat May 17 13:47:25 BST 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=162206         




------- Additional Comments From arnd.baecker web de  2008-05-17 14:47 -------
On the technical side, there are two things:
a) In kio digikamalbums.cpp:  there is the routine 
      makeFilterList( const QString &filter )
   which calls regExps << QRegExp( (*it).stripWhiteSpace(), false, true );
   Setting the "false" to "true" corresponds to a case sensitive search.

   So in kio_digikamalbums::special(const QByteArray& data) 
   a new  element (e.g. `caseSensitive`) for `QDataStream ds` has to be
   added. If I remember correctly, one has to be careful when adding
   stuff here due to the serial protocol ...

b) add a new entry to the pop-up and a new configuration option to
   save this setting

While a) seems pretty straightforward, I am not sure about b),
i.e. whether one can easily sub-class the pop-up menu
and simply add a new entry?



More information about the Digikam-devel mailing list