#NEWLINE# def __init__( self , parent = None ) : #NEWLINE# #INDENT# QTreeWidget . __init__ ( self , parent ) #NEWLINE# self . header_list = [ _ ( 'Line #' ) , _ ( 'Memory usage' ) , _ ( 'Increment' ) , _ ( 'Line contents' ) ] #NEWLINE# self . stats = None #NEWLINE# self . max_time = 0 #NEWLINE# self . header ( ) . setDefaultAlignment ( Qt . AlignCenter ) #NEWLINE# self . setColumnCount ( len ( parent . header_list ) ) #NEWLINE# self . setHeaderLabels ( self . header_list ) #NEWLINE# self . clear ( ) #NEWLINE# self . connect ( self , SIGNAL ( 'itemActivated(QTreeWidgetItem*,int)' ) , self . item_activated )