#NEWLINE# def eventFilter( self , object , event ) : #NEWLINE# #INDENT# ' eventFilter(object: QObject, event: QEvent) -> bool\n        Filter window title change event to change the tool window title\n        \n        ' #NEWLINE# if ( event . type ( ) == QtCore . QEvent . WindowTitleChange ) : #NEWLINE# #INDENT# self . setWindowTitle ( object . windowTitle ( ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( event . type ( ) == QtCore . QEvent . Close ) : #NEWLINE# #INDENT# object . removeEventFilter ( self ) #NEWLINE# #UNINDENT# #UNINDENT# return QtGui . QDockWidget . eventFilter ( self , object , self )