path: root/tests
diff options
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-08-11 18:21:34 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-08-13 18:39:10 -0300
commit6e6e88c719568af17b0dcbd6584f7f1b6c9acc80 (patch)
treea8abd0f2fe460ee825b1b4c6d67f63366aed1d85 /tests
parent8dcacb90f0d61b47e295daa501fb9c2af97b42f3 (diff)
Adds support for property setting in QObject derived constructors.
Now QObject properties can be set through named arguments passed to their constructors. E.g.: to add a new property-value pair to a newly created QObject just do: obj = QObject(objectName='bar') this is equivalent to obj = QObject() obj.setProperty('objectName', 'bar') The constructor way to set properties will only work for already existing properties, dynamic properties must be set with the QObject.setProperty method. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Ara├║jo <renato.filho@openbossa.org>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions