@@ -705,10 +705,10 @@ def paintIndicator(self):
705705 grad .setColorAt (.5 , QtCore .Qt .white )
706706 grad .setColorAt (.8 , color )
707707 p .setBrush (QtGui .QBrush (grad ))
708- p .drawRoundedRect (topLeft .x ()+ (self .width ()* ((1 - self ._w_fraction )/ 2 )) + self ._top_edge_offset ,
709- topLeft .y ()+ self ._right_edge_offset ,
710- self .width ()* self ._w_fraction + 2 ,
711- self .height ()* self ._h_fraction ,
708+ p .drawRoundedRect (int ( topLeft .x ()+ (self .width ()* ((1 - self ._w_fraction )/ 2 )) + self ._top_edge_offset ) ,
709+ int ( topLeft .y ()+ self ._right_edge_offset ) ,
710+ int ( self .width ()* self ._w_fraction + 2 ) ,
711+ int ( self .height ()* self ._h_fraction ) ,
712712 self ._corner_radius , self ._corner_radius )
713713
714714
@@ -726,10 +726,10 @@ def paintIndicator(self):
726726 grad .setColorAt (.5 , QtCore .Qt .white )
727727 grad .setColorAt (.8 , color )
728728 p .setBrush (QtGui .QBrush (grad ))
729- p .drawRoundedRect (topRight .x ()- self .width ()* self ._w_fraction - self ._right_edge_offset ,
730- topRight .y ()+ (self .height ()* ((1 - self ._h_fraction )/ 2 )) + self ._top_edge_offset ,
731- self .width ()* self ._w_fraction ,
732- self .height ()* self ._h_fraction ,
729+ p .drawRoundedRect (int ( topRight .x ()- self .width ()* self ._w_fraction - self ._right_edge_offset ) ,
730+ int ( topRight .y ()+ (self .height ()* ((1 - self ._h_fraction )/ 2 )) + self ._top_edge_offset ) ,
731+ int ( self .width ()* self ._w_fraction ) ,
732+ int ( self .height ()* self ._h_fraction ) ,
733733 self ._corner_radius , self ._corner_radius )
734734
735735 def set_indicator (self , data ):
0 commit comments