On Thu, Aug 18, 2011 at 5:13 PM, Viranch Mehta <viranch.me...@gmail.com>wrote:

>
> Component.onCompleted: {
>     var profiles = dataSource.data["PowerDevil"]["Available profiles"];
>     // do stuff with the map, eg iterate
> }
>
>
Fixed. The above code (for getting the map and iterating) had to be put
inside MouseArea.onClicked (which is for showing the popup dialog of battery
applet). For some reason, it worked there, but wouldn't work inside any
Component.onCompleted. So everytime it is clicked, the map gets populated,
clear the combo box first and then add each item in the combo box. This
seems kind of a dirty work around, but works for now.

Viranch
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to