#NEWLINE# def __init__( self , entity , window = None ) : #NEWLINE# #INDENT# QBrowserWidgetItem . __init__ ( self , entity ) #NEWLINE# if window : #NEWLINE# #INDENT# self . window = window #NEWLINE# #UNINDENT# self . entity = entity #NEWLINE# if ( not entity ) : #NEWLINE# #INDENT# self . setText ( 0 , self . window . get_name ( ) ) #NEWLINE# #UNINDENT# self . setFlags ( ( ( self . flags ( ) | QtCore . Qt . ItemIsDragEnabled ) | QtCore . Qt . ItemIsDropEnabled ) )