Still cannot access QMap in QML

Viranch Mehta viranch.mehta at gmail.com
Thu Jun 9 12:47:50 CEST 2011


Here's the plasmoidviewer's output: http://paste.kde.org/80143/ (the
pmSource in the output=dataEngine)

<http://paste.kde.org/80143/>Though it says dataEngine.data["AC Adapter"],
dataEngine.data["Battery0"], dataEngine.data["PowerDevil"] are [undefined],
I'm able to access the data associated with the sources.

On Thu, Jun 9, 2011 at 3:50 PM, Viranch Mehta <viranch.mehta at gmail.com>wrote:

>
>
> On Thu, Jun 9, 2011 at 3:40 PM, Aaron J. Seigo <aseigo at kde.org> wrote:
>
>> On Wednesday, June 8, 2011 23:20:02 Viranch Mehta wrote:
>> > print(dataEngine.data["PowerDevil"]["Available profiles"]);
>>
>> wait .. what is "dataEngine"? is it the actual dataEngine? or? it's
>> entirely
>> impossible to tell what this code is actually doing without a bit more
>> context.
>>
>> Here's the dataEngine:
>
> PlasmaCore.DataSource {
>     id: dataEngine
>     engine: "powermanagement"
>     connectedSources: ["AC Adapter", "Battery", "Battery 0", "PowerDevil"]
>     interval: 0
> }
>
> Everything else works fine. I'm able to get the battery charge info,
> whether its plugged in to AC source or not, etc.
>
> Cheers,
> Viranch
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/plasma-devel/attachments/20110609/095c2c3a/attachment.htm 


More information about the Plasma-devel mailing list