Re: QDBus call return error

2011-06-04 Thread Aaron J. Seigo
On Saturday, June 4, 2011 18:44:11 Beat Wolf wrote: > why not patch the dataengine so that others can benefit from it too? just an > idea could be done; but really it belongs in solid and solid's battery device doesn't have API for this. -- Aaron J. Seigo humru othro a kohnu se GPG Fingerprint:

Re: QDBus call return error

2011-06-04 Thread SoulEdge
4/6/2011 Beat Wolf ha scritto: > why not patch the dataengine so that others can benefit from it too? just > an idea Because I don't know how to patch the dataengine, this is my first "program" for KDE...little step :D N.P. ___ Plasma-devel mai

Re: QDBus call return error

2011-06-04 Thread Beat Wolf
why not patch the dataengine so that others can benefit from it too? just an idea Am Samstag, 4. Juni 2011, 18:42:18 schrieb SoulEdge: > 4/6/2011 Shaun Reich ha scritto: > > Uh..that the signature doesn't exist :D > > Either the method requires (a) parameter(s), or that method does not > > exist

Re: QDBus call return error

2011-06-04 Thread SoulEdge
4/6/2011 Shaun Reich ha scritto: > Uh..that the signature doesn't exist :D > Either the method requires (a) parameter(s), or that method does not > exist (wrong spelling, case, etc.). > > Also, are you sure that there isn't a dataengine that already serves > this information? e.g. "powermanagement

Re: QDBus call return error

2011-06-04 Thread Shaun Reich
> QDBusInterface *battInterface   =       new > QDBusInterface("org.freedesktop.UPower", >                                                 > "/org/freedesktop/UPower/devices/battery_BAT1", >                                                 > "org.freedesktop.UPower.Device", >                      

QDBus call return error

2011-06-04 Thread SoulEdge
Hi all, I'm writing my first plasmoid and I'd like to make a plasmoid that show the Energy Rate using the lib org.freedesktop.upower. My script is something like this: QDBusInterface *battInterface = new QDBusInterface("org.freedesktop.UPower",

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