File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -56,11 +56,10 @@ export class RNTab extends QTabWidget implements RNComponent {
56
56
if ( ! ( child instanceof RNTabItem ) ) {
57
57
throw new Error ( "Children of tab should be of type TabItem" ) ;
58
58
}
59
- // uncomment below code after new release of nodegui containing insertTab
60
- // const index = this.indexOf(beforeChild.actualTabWidget as NodeWidget<any>);
61
- // this.insertTab(index, child.actualTabWidget, new QIcon(), "");
62
- // child.parentTab = this;
63
- // setTabItemProps(child, this, child.initialProps, {});
59
+ const index = this . indexOf ( beforeChild . actualTabWidget as NodeWidget < any > ) ;
60
+ this . insertTab ( index , child . actualTabWidget as NodeWidget < any > , new QIcon ( ) , "" ) ;
61
+ child . parentTab = this ;
62
+ setTabItemProps ( child , this , child . initialProps , { } ) ;
64
63
}
65
64
removeChild ( child : RNTabItem ) : void {
66
65
const childIndex = this . indexOf ( child . actualTabWidget as NodeWidget < any > ) ;
You can’t perform that action at this time.
0 commit comments