Still cannot access QMap in QML
Viranch Mehta
viranch.mehta at gmail.com
Thu Jun 9 12:20:57 CEST 2011
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/e761ddb8/attachment.htm
More information about the Plasma-devel
mailing list