#NEWLINE# def inheritOpaqueResize( self ) : #NEWLINE# #INDENT# ' Inherit the opaque resize state.\n\n        This method traverses the ancestor hierarchy and updates its\n        opaque resize state based on the first QDockArea it finds. If\n        no such ancestor exists, the setting is unchanged. This method\n        is called by the framework at the appropriate times.\n\n        ' #NEWLINE# p = self . parent ( ) #NEWLINE# while ( p is not None ) : #NEWLINE# #INDENT# if isinstance ( p , QDockArea ) : #NEWLINE# #INDENT# self . setOpaqueResize ( p . opaqueItemResize ( ) ) #NEWLINE# return #NEWLINE# #UNINDENT# p = p . parent ( )