(child: QWidget<any>)
| 48 | this.appendChild(child); |
| 49 | } |
| 50 | appendChild(child: QWidget<any>): void { |
| 51 | if (!child || child instanceof QDialog) { |
| 52 | return; |
| 53 | } |
| 54 | if (!this.layout()) { |
| 55 | const flexLayout = new FlexLayout(); |
| 56 | flexLayout.setFlexNode(this.getFlexNode()); |
| 57 | this.setLayout(flexLayout); |
| 58 | } |
| 59 | this.layout()!.addWidget(child); |
| 60 | } |
| 61 | insertBefore(child: QWidget<any>, beforeChild: QWidget<any>): void { |
| 62 | if (child! instanceof QDialog) { |
| 63 | this.appendChild(child); |
no test coverage detected