Fixes custom code for QTabWidget.
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
This commit is contained in:
parent
1b27bad2b2
commit
9f2f97de73
1 changed files with 2 additions and 2 deletions
|
|
@ -3439,7 +3439,7 @@
|
||||||
<inject-code class="target" position="beginning">
|
<inject-code class="target" position="beginning">
|
||||||
QWidget* tab = %CPPSELF.widget(%1);
|
QWidget* tab = %CPPSELF.widget(%1);
|
||||||
if (tab) {
|
if (tab) {
|
||||||
Shiboken::AutoDecref pyWidget(%CONVERTTOPYTHON[QWidget*](tab));
|
Shiboken::AutoDecRef pyWidget(%CONVERTTOPYTHON[QWidget*](tab));
|
||||||
Shiboken::setParent(0, pyWidget);
|
Shiboken::setParent(0, pyWidget);
|
||||||
%CPPSELF.%FUNCTION_NAME(%1);
|
%CPPSELF.%FUNCTION_NAME(%1);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue