On Thursday, September 12, 2013 16:19:18 Martin Graesslin wrote: > On Thursday 12 September 2013 15:51:55 Aaron J. Seigo wrote: > > On Thursday, September 12, 2013 15:26:50 Marco Martin wrote: > > > in general to c++ it's maybe slightly clunkier, since one has to call > > > model-> > > > > > > >data(role) and then try to convert the qvariant. > > > > > > (perhaps it may have some api to ease fetch data from c++) > > > > > > on QML... would be awesome :D > > > > iâd be lazy (the programmerâs mantra? ;) and not bother with any such API > > until it is shown to be necessary. i would not be surprised if every user > > of KActivities::Info ends up being some QML code somewhere. > > do you want to be proofed wrong? ;-) kwin/useractions.cpp line 691 following > (frameworks-scratch branch)
filling a popup menu hardly seems a good reason to have a whole class in a library. visiting lxr.kde.org, it turns out that there are 4 use cases: * filling a QMenu (kwin, tasks plasmoid) * filling a combobox * populating a dataengine (SLC, activities) * searching in an AbstractRunner the last three either can use a model or will be moving to models in Plasma 2. which means the only use case right now is populating a popup menu. in 2 places. -- Aaron J. Seigo
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel