#NEWLINE# def __init__( self , parent = None ) : #NEWLINE# #INDENT# QtGui . QWidget . __init__ ( self , parent ) #NEWLINE# self . gridLayout = QtGui . QGridLayout ( self ) #NEWLINE# self . gridLayout . setMargin ( 10 ) #NEWLINE# self . gridLayout . setSpacing ( 10 ) #NEWLINE# self . setFont ( CurrentTheme . VISUAL_DIFF_LEGEND_FONT ) #NEWLINE# data = [ [ 0 , 0 , 'Successful' , CurrentTheme . SUCCESS_MODULE_BRUSH ] , [ 0 , 1 , 'Error' , CurrentTheme . ERROR_MODULE_BRUSH ] , [ 0 , 2 , 'Cached' , CurrentTheme . NOT_EXECUTED_MODULE_BRUSH ] , [ 1 , 0 , 'Not executed' , CurrentTheme . PERSISTENT_MODULE_BRUSH ] , [ 1 , 1 , 'Suspended' , CurrentTheme . SUSPENDED_MODULE_BRUSH ] ] #NEWLINE# for ( x , y , text , brush ) in self : #NEWLINE# #INDENT# self . gridLayout . addWidget ( QLegendBox ( brush , CurrentTheme . VISUAL_DIFF_LEGEND_SIZE , self ) , ( x * 2 ) , ( y * 2 ) ) #NEWLINE# self . gridLayout . addWidget ( QtGui . QLabel ( text , self ) , ( x * 2 ) , ( ( y * 2 ) + 1 ) )