--===============2661377287806211407== Content-Type: multipart/signed; boundary="nextPart1399066.SdeSCypkPv"; micalg="pgp-sha1"; protocol="application/pgp-signature" --nextPart1399066.SdeSCypkPv Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="ISO-8859-1" 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-> > > >=20 > > > >data(role) and then try to convert the qvariant. > > >=20 > > > (perhaps it may have some api to ease fetch data from c++) > > >=20 > > > on QML... would be awesome :D > >=20 > > i=E2=80=99d be lazy (the programmer=E2=80=99s mantra? ;) and not bo= ther with any such=20 API > > until it is shown to be necessary. i would not be surprised if ever= y user > > of KActivities::Info ends up being some QML code somewhere. >=20 > do you want to be proofed wrong? ;-) kwin/useractions.cpp line 691 fo= llowing > (frameworks-scratch branch) filling a popup menu hardly seems a good reason to have a whole class i= n a=20 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 Pl= asma 2.=20 which means the only use case right now is populating a popup menu. in = 2=20 places. --=20 Aaron J. Seigo --nextPart1399066.SdeSCypkPv Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) iEYEABECAAYFAlIyT38ACgkQ1rcusafx20NxxwCgmYAAzMC3rmALrl1r+qpmoJ0R KjEAoIRA+ncPaJ273MFmCFpfqbyDMxRT =1FhB -----END PGP SIGNATURE----- --nextPart1399066.SdeSCypkPv-- --===============2661377287806211407== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel --===============2661377287806211407==--