#NEWLINE# def setup( self ) : #NEWLINE# #INDENT# pt = self . parentItem ( ) . get_leftmost_point ( ) #NEWLINE# if ( not pt ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# self . setZValue ( 1.25 ) #NEWLINE# g = QtGui . QLinearGradient ( ) #NEWLINE# g . setStart ( 0.0 , 0.5 ) #NEWLINE# g . setFinalStop ( 1.0 , 0.5 ) #NEWLINE# g . setCoordinateMode ( QtGui . QGradient . ObjectBoundingMode ) #NEWLINE# p = QtGui . QPen ( ) #NEWLINE# p . setStyle ( QtCore . Qt . NoPen ) #NEWLINE# pts = [ QtCore . QPointF ( pt . x ( ) , 0 ) ] #NEWLINE# self . setPen ( p ) #NEWLINE# while 1 : #NEWLINE# #INDENT# c = QtGui . QColor ( self . _color ) #NEWLINE# c . setAlphaF ( pt . _opacity ) #NEWLINE# g . setColorAt ( pt . _scalar , c ) #NEWLINE# pts . append ( pt . _point ) #NEWLINE# if pt . _right_line : #NEWLINE# #INDENT# pt = pt . _right_line . _point_right #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# #UNINDENT# self . setBrush ( QtGui . QBrush ( g ) ) #NEWLINE# pts . append ( QtCore . QPointF ( pt . _point . x ( ) , 0 ) ) #NEWLINE# polygon = QtGui . QPolygonF ( pts ) #NEWLINE# self . setPolygon ( polygon )