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. 

if dataEngine is really dataEngine("powermanagement") then there is no way 
that will work; i'll bet you're getting an error message about how data is not 
an object in dataEngine, right?

what you need to do is connect the PowerDevil source to a function or the 
plasmoid object. see:

http://techbase.kde.org/Development/Tutorials/Plasma/JavaScript/DataEngine

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks

Attachment: signature.asc
Description: This is a digitally signed message part.

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

Reply via email to