#NEWLINE# def mousePressEvent( self , e ) : #NEWLINE# #INDENT# vw = self . childAt ( e . pos ( ) ) #NEWLINE# while ( ( vw is not None ) and ( not isinstance ( vw , QMenuValueItem ) ) ) : #NEWLINE# #INDENT# vw = vw . parent ( ) #NEWLINE# #UNINDENT# if ( vw is not None ) : #NEWLINE# #INDENT# vw . emit ( QtCore . SIGNAL ( 'clicked(bool)' ) , True ) #NEWLINE# #UNINDENT# QtGui . QMenu . mousePressEvent ( self , e )