diff options
author | Renato Filho <renato.filho@openbossa.org> | 2011-09-19 16:01:42 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:54:51 -0300 |
commit | 3a0b98ef4b495bb8eb0a8aa82f6f79bfdfad6c49 (patch) | |
tree | 84046c08f7ed231ec54d94dc102725d7846694c7 /PySide/QtGui/glue/qlayout_help_functions.h | |
parent | d86765e535f7b55caa231d90737194bad86cf50d (diff) |
Fix QLayout.itemAt and QGridLayout.itemAtPosition return policy.
Fixes bug #1006.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'PySide/QtGui/glue/qlayout_help_functions.h')
-rw-r--r-- | PySide/QtGui/glue/qlayout_help_functions.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/PySide/QtGui/glue/qlayout_help_functions.h b/PySide/QtGui/glue/qlayout_help_functions.h index 90c950a5f..6912fc8c6 100644 --- a/PySide/QtGui/glue/qlayout_help_functions.h +++ b/PySide/QtGui/glue/qlayout_help_functions.h @@ -63,9 +63,8 @@ inline void addLayoutOwnership(QLayout* layout, QLayoutItem* item) addLayoutOwnership(layout, l); } - Shiboken::AutoDecRef pyParent(Shiboken::Converter<QLayout*>::toPython(layout)); Shiboken::AutoDecRef pyChild(Shiboken::Converter<QLayoutItem*>::toPython(item)); - Shiboken::Object::setParent(pyParent, pyChild); + Shiboken::Object::releaseOwnership(pyChild); } #endif |