(child: QWidget<any>)
| 250 | this.layout()!.addWidget(child); |
| 251 | } |
| 252 | removeChild(child: QWidget<any>) { |
| 253 | if (!this.layout()) { |
| 254 | console.warn("parent has no layout to remove child from"); |
| 255 | return; |
| 256 | } |
| 257 | this.layout()!.removeWidget(child); |
| 258 | child.close(); |
| 259 | } |
| 260 | } |
| 261 | |
| 262 | type Geometry = { |