import { QMainWindow , NodeWidget } from '@nodegui/nodegui' ; import { VNWidget } from 'widgets/config' ; internal export class VNWindow extends QMainWindow implements VNWidget < { } > { insertChild ( child ) { this . setCentralWidget ( child ) ; } patchProp ( ) { } removeChild ( child ) { const removedChild = this . takeCentralWidget ( ) ; if ( removedChild ) { removedChild . close ( ) ; } child . close ( ) ; } insertBefore ( child ) { if ( ! this . centralWidget ) { this . insertChild ( child ) ; } } getNextSibling ( ) { return null ; } }