TaskManager::TasksModel

Marco Martin notmart at gmail.com
Thu Mar 10 17:18:35 CET 2011


On Wed, Mar 9, 2011 at 3:26 PM, Aaron J. Seigo
> this will come down to whatever is most convenient for the QML: one
> QModelIndex with multiple display roles, or multiple QModelIndexes with the
> same row # but each containing a different bit of data for the window.
>
> Marco: do you have any thoughts on this?

it's quite painful (altough not impossible) to use models with
multiple columns in qml, the easiest way ime is to have a single
column with a role for each type of data (yes, the model becomes very
much a glorified list of variantmaps ;)
also, needs that each role has a name with setRoleNames

> also, if there are no objections, i'll be merging the branch into master in
> the next day or so.

+1 ;)

the applet using it will have its own branch i guess?

Cheers,
Marco Martin


More information about the Plasma-devel mailing list