code: def paint( self, painter, option, widget ):
          
          super(XGanttDepItem, self).paint(painter, option, widget)
          
          # redraw the poly to force-fill it
          if ( self._polygon ):
              painter.setRenderHint(painter.Antialiasing)
              painter.setBrush(self.pen().color())
              painter.drawPolygon(self._polygon)
docs: Overloads the paint method from QGraphicsPathItem to \
          handle custom drawing of the path using this items \
          pens and polygons.
          
          :param      painter     <QPainter>
          :param      option      <QGraphicsItemStyleOption>
          :param      widget      <QWidget>