Activities API
Aaron J. Seigo
aseigo at kde.org
Thu Sep 12 23:34:23 UTC 2013
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20130913/00335191/attachment.sig>
More information about the Plasma-devel
mailing list