New class KListWidgetSearchLine

Peter Hedlund peter at peterandlinda.com
Mon Mar 12 16:42:08 GMT 2007


Benjamin Meyer wrote:

> On Sunday 11 March 2007 23:10, Albert Astals Cid wrote:
>> Well, it's not a new class, it's just porting K3ListViewSearchLine to
>> KListWidget so i can use it on KIconDialog that i ported from QIconView
>> to KListWidget.
>>
>> I'm attaching the two files. I want to commit tomorrow as it's just a
>> port from the old class and seems to be working quite good.
>>
>> Albert
> 
> Hmm, well before it goes in we need two apps that use it, docs and
> autotests. But really I would think we would want to have a model and view
> and just
> stick a sortfilterproxymodel on top which is simpler, and faster.  We
> could of course just make it an internal class of KIconDialog.
> 
> -Benjamin Meyer

We could use something like this in KVocTrain and KWordQuiz in kdeedu. Those
programs use subclasses of QAbstractTableModel, so the new widget would
have to be even more generic. Could it not be made to work with any
QAbstractItemModel descendant (possibly through a proxy model)?

Thanks,
Peter





More information about the kde-core-devel mailing list