#NEWLINE# def changeEvent( self , event ) : #NEWLINE# #INDENT# " changeEvent(event: QEvent) -> None        \n        Make sure to update the tool parent when to match the widget's\n        real parent\n        \n        " #NEWLINE# if ( ( event . type ( ) == QtCore . QEvent . ParentChange ) and hasattr ( self , '_toolWindow' ) ) : #NEWLINE# #INDENT# if ( self . parent ( ) != event . _toolWindow ) : #NEWLINE# #INDENT# self . _toolWindow . setParent ( self . parent ( ) )