Re: QML model with image and text per element

2011-06-26 Thread Shaun Reich
On Sun, Jun 26, 2011 at 4:17 PM, Viranch Mehta wrote: Talked to Viranch on irc and the first suggestion was a bit strange at first, but now I get it ;-) I'll add some stuff to the docs as well, when I get a chance. Thanks mate. -- Shaun Reich, KDE Software Developer (kde.org)

Re: QML model with image and text per element

2011-06-26 Thread Viranch Mehta
On Mon, Jun 27, 2011 at 12:16 AM, Shaun Reich wrote: > > Okay, so if the data is laid out as you said, in the last example..how > would I display that in the qml view? Since I need to display *both* > the icon and the user's name in the model. Give me something concrete, > please -- as you well k

Re: QML model with image and text per element

2011-06-26 Thread Shaun Reich
> well, i don't know how that data engine is done, but usually when representing > a list of items they are done this way: > sone source per item, like > source called as the login, then one key per "role" for instance a key with > login one with name, one with user image... > from the dataengine y

Re: QML model with image and text per element

2011-06-26 Thread Marco Martin
On Sunday 26 June 2011, you wrote: > On Sun, Jun 26, 2011 at 1:26 PM, Marco Martin wrote: > > all depends on... exactly what do you have as available data in the > > model/dataengine? and what you could put? > > I have the sources I mentioned, a qstringlist of the full names of the > users..a lis

Re: QML model with image and text per element

2011-06-26 Thread Shaun Reich
On Sun, Jun 26, 2011 at 1:26 PM, Marco Martin wrote: > all depends on... exactly what do you have as available data in the > model/dataengine? and what you could put? I have the sources I mentioned, a qstringlist of the full names of the users..a list of the user's "short-name" (unix login), as w

Re: QML model with image and text per element

2011-06-26 Thread Marco Martin
On Sunday 26 June 2011, Shaun Reich wrote: > But basically I want it to display the text from userListFullNames, > and display the icon for each user's name. I don't know how to do > this..I thought about keeping dataSource:... the same, and then in my > delegate, where I create a Text object, I w