Add code injections for QTabWidget.
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
This commit is contained in:
parent
10a6f08867
commit
ec546e00fe
1 changed files with 16 additions and 2 deletions
|
|
@ -2827,8 +2827,22 @@
|
||||||
</modify-function>
|
</modify-function>
|
||||||
|
|
||||||
<!-- This function need be re-implemented in inject code -->
|
<!-- This function need be re-implemented in inject code -->
|
||||||
<modify-function signature="removeTab(int)" remove="all"/>
|
<modify-function signature="removeTab(int)">
|
||||||
<modify-function signature="clear()" remove="all"/>
|
<inject-code class="target" position="beginning">
|
||||||
|
QWidget* tab = %CPPSELF.widget(%1);
|
||||||
|
if (tab) {
|
||||||
|
Shiboken::setParent(0, %CONVERTTOPYTHON[QWidget*](tab));
|
||||||
|
%CPPSELF.%FUNCTION_NAME(%1);
|
||||||
|
}
|
||||||
|
</inject-code>
|
||||||
|
</modify-function>
|
||||||
|
<modify-function signature="clear()">
|
||||||
|
<inject-code class="target" position="beginning">
|
||||||
|
for (int i=0; i < %CPPSELF.count(); i++)
|
||||||
|
Shiboken::setParent(0, %CONVERTTOPYTHON[QWidget*](%CPPSELF.widget(i)));
|
||||||
|
%CPPSELF.%FUNCTION_NAME();
|
||||||
|
</inject-code>
|
||||||
|
</modify-function>
|
||||||
</object-type>
|
</object-type>
|
||||||
<object-type name="QDrag">
|
<object-type name="QDrag">
|
||||||
<extra-includes>
|
<extra-includes>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue