Introducing Homerun
Aurélien Gâteau
agateau at kde.org
Thu Nov 15 09:57:13 UTC 2012
Le jeudi 15 novembre 2012 10:19:11 Marco Martin a écrit :
> On Wednesday 14 November 2012, Aurélien Gâteau wrote:
> > > I see that listview has a section property that would be exactly what is
> > > needed, while gridview doesn't, meh
> >
> > Agreed, I wish listview had a section property.
> >
> > > in this case may be worth a proxymodel?
> >
> > How would this proxymodel work?
>
> don't know, one option is to take entries from the runner model and put it
> in a tree, one branch by runner
I tried that, but tree models are a pain to use in QML. That is why I decided
for a simpler two-level system with one model which exposes submodels.
> , or just filter (and for that
> sortfiltermodel may be enough) by runner, than have a single runnermodel,
> but a sortfiltrmodel per category
Having one SortFilterModel per category is not a good idea IMO because It
means each SortFilterModel have to go through all RunnerModel runners
everytime RunnerModel result changes, whereas Homerun implementation loops on
all results once and dispatch them to its submodels.
Aurélien
More information about the Plasma-devel
mailing list