#NEWLINE# def __init__( self , workflow , parent = None ) : #NEWLINE# #INDENT# ( v_name , v_id , v_version , version_name , time , user , thumb ) = workflow #NEWLINE# version = ( version_name if version_name else v_version ) #NEWLINE# labels = ( str ( v_name ) , str ( version ) , str ( time ) , str ( user ) ) #NEWLINE# QtGui . QTreeWidgetItem . __init__ ( self , labels ) #NEWLINE# self . workflow = workflow #NEWLINE# self . setToolTip ( 0 , ( 'vistrail:%s version:%s' % ( v_id , v_version ) ) ) #NEWLINE# if thumb : #NEWLINE# #INDENT# pixmap = QtGui . QPixmap ( ) #NEWLINE# pixmap . loadFromData ( version_name ) #NEWLINE# self . setIcon ( 1 , QtGui . QIcon ( pixmap ) ) #NEWLINE# tooltip = ( '<img border=0 src="data:image/png;base64,%s">' % thumb . encode ( 'base64' ) ) #NEWLINE# self . setToolTip ( 1 , tooltip )