Accessing models from QML plasmoid

2011-06-17 Thread Francesco Nwokeka
Hi all, I'm working on a GSoC project and creating plasmoids for kde-telepathy. I would like to know from you guys, which would be the right approach to read info from a model we have that retrieves it's info from nepomuk. Do I have to wrap this model as a dataengine, or is there a bet

Re: Assigning delegate to repeater model in QML

2011-06-17 Thread Marco Martin
On Friday 17 June 2011, Viranch Mehta wrote: > However, if I use it as follows, it works: > > Row { > Repeater { > model: ["hello", "world"] > delegate: Item { > id: delegateItem > Text { text: modelData } > } > } > > But this makes the code loo

Assigning delegate to repeater model in QML

2011-06-17 Thread Viranch Mehta
Hi, I just noticed something unusual with assigning delegates to data models in QML. I have following item to use as a delegate: Item { id: delegateItem Text { text: modelData } } And following data model: Row { Repeater { model: ["hello", "world"] delegate: delegate