Re: QMap in QML

2011-06-05 Thread Viranch Mehta
On Sat, Jun 4, 2011 at 7:54 PM, Aaron J. Seigo wrote: > > this is a problem in the JS bindings. i've "fixed" it in master, which will > become 4.7.0 ... i woul dlike to find a better fix, however.. > > Is it only "StringStringMap" specific? Because, we'll be seeing new dataengines coming up and p

Re: QMap in QML

2011-06-04 Thread Aaron J. Seigo
On Saturday, June 4, 2011 15:13:35 Viranch Mehta wrote: > Actually, I'm not sure if its a QMap-in-QML problem, or the [undefined] > object problem. But the thing is the execution never enters the for loop. > > Also, the QMap is typedef-ed to StringStringMap in the > engine, if that matters. this

Re: QMap in QML

2011-06-04 Thread Viranch Mehta
Actually, I'm not sure if its a QMap-in-QML problem, or the [undefined] object problem. But the thing is the execution never enters the for loop. Also, the QMap is typedef-ed to StringStringMap in the engine, if that matters. ___ Plasma-devel mailing lis

Re: QMap in QML

2011-06-04 Thread Viranch Mehta
On Sat, Jun 4, 2011 at 1:19 PM, Marco Martin wrote: > > try to do > for (item in map) { > print(item) > print(map[item]) > } > > > Well actually, i'm getting the data ( dataSource.data["PowerDevil"]["Available profiles"] ) inside Component.onCompleted and then running the for loop on it.

Re: QMap in QML

2011-06-04 Thread Marco Martin
On Friday 03 June 2011, Viranch Mehta wrote: > Hi, > > I have a combobox to which I need to add the items. The dataengine gives me > a QMap, from which I want to add the keys to the combobox. > I'm not sure how well QML recognizes a QMap and lets me use QMap::keys() > method. try to do for (item