[KPhotoAlbum] bug report : annotation dialog filter text match
Sujee Maniyam
kimdaba at sujee.net
Mon Oct 30 07:30:35 GMT 2006
Hi,
The search bar does 'sub string' matches, so would prefer to have
AnnotationDialog do the same.
I _think_ this ought to do it (haven't had the chance to verify it)
AnnotationDialg/CompletableLineEdit.cpp:
bool AnnotationDialog::CompletableLineEdit::itemMatchesText(
QListViewItem* item, const QString& text )
{
//return item->text(0).lower().startsWith( text.lower() );
return item->text(0).lower().contains( text.lower() ) ;
}
thanks
/sujee
Jesper K. Pedersen wrote:
> Well that is a matter of taste, isn't it?
>
> On Monday 30 October 2006 07:40, Sujee Maniyam wrote:
> | Hi,
> | In the annotation dialog, when I type in 'filter text' the matches shown
> | are _starting with_ the filter text; not a _sub string_ match like in
> | the main search bar.
> |
> | Lets say I have the following Locations
> | park of light
> | golden gate park
> | foobar
> |
> | when I type 'park', I should get both 'park of light' and 'golden gate
> | park'. Now only 'park of light' is shown.
> |
> | thanks
> | /sujee
> | _______________________________________________
> | KPhotoAlbum mailing list
> | KPhotoAlbum at kdab.net
> | http://mail.kdab.net/mailman/listinfo/kphotoalbum
>
More information about the Kphotoalbum
mailing list