diff options
author | Lauro Neto <lauro.neto@openbossa.org> | 2010-10-06 19:18:19 -0300 |
---|---|---|
committer | Lauro Neto <lauro.neto@openbossa.org> | 2010-10-07 15:10:11 -0300 |
commit | 04180e1f1d9e5dc2b8e8e856f6fde0587074284a (patch) | |
tree | 7fe9c7b0d3ec6d7c4e277ae892bee71b0ad1d187 /PySide | |
parent | 3c7f55855b45168818ef6fc5e58b30f1c7e4d133 (diff) |
Add default name for QObject.findChild(type, name)
Plus test.
Should return a child of the given type.
Diffstat (limited to 'PySide')
-rw-r--r-- | PySide/QtCore/typesystem_core.xml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml index 37decba1f..db7777e1b 100644 --- a/PySide/QtCore/typesystem_core.xml +++ b/PySide/QtCore/typesystem_core.xml @@ -1165,6 +1165,9 @@ <modify-argument index="return"> <parent index="this" action="add"/> </modify-argument> + <modify-argument index="2"> + <replace-default-expression with="QString()" /> + </modify-argument> </add-function> <add-function signature="findChildren(PyTypeObject*, const QString&)" return-type="PySequence*" > <inject-code class="target" position="beginning"> |