Opinion on config dialog for QML plasmoids

Viranch Mehta viranch.mehta at gmail.com
Thu Aug 18 12:29:51 UTC 2011


On Thu, Aug 18, 2011 at 5:13 PM, Viranch Mehta <viranch.mehta at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20110818/0ebb361a/attachment.html>


More information about the Plasma-devel mailing list