code: def rebuildPath(self):
          
          # rebuild linear style
          if self.isStyle(XConnectionStyle.Linear):
              return self.rebuildLinear()
  
          # rebuild block style
          elif self.isStyle(XConnectionStyle.Block):
              return self.rebuildBlock()
  
          # rebuild smooth style
          elif self.isStyle(XConnectionStyle.Smooth):
              return self.rebuildSmooth()
  
          # otherwise, we have an invalid style, or a style
          # defined by a subclass
          else:
              return QPainterPath()
docs: Rebuilds the path for the given style options based on the currently \
          set parameters.
          
          :return     <QPainterPath>