libplasma and scripting

Aaron J. Seigo aseigo at kde.org
Tue Feb 23 23:34:53 CET 2010


hi all..

this is just a reminder that _whenever_ you add any setters/getters to classes 
in plasma/widgets/*h you must add a corresponding Q_PROPERTY to the class 
otherwise it will not appear in the script bindings.

signals and slots don't need this, unless the slot is a setter or a getter, in 
which case a Q_PROPERTY should be added for completeness

also, please help me keep 
http://techbase.kde.org/Development/Tutorials/Plasma/JavaScript/API up to date 
as we make changes. thanks.

-- 
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


More information about the Plasma-devel mailing list