code: def drawForeground(self, painter, rect):
          
          gantt  = self.ganttWidget()
          header = gantt.treeWidget().header()
          width  = self.sceneRect().width()
          height = header.height()
          
          for tile_rect, tile in self._tiles:
              painter.drawPixmap(tile_rect.x(), rect.top(), tile)
          
          palette = self.palette()
          textColor = palette.color(palette.Button).darker(125)
          painter.setPen(textColor)
          painter.drawLine(0, rect.top() + height, width, rect.top() + height)
docs: Draws the foreground for this scene.
          
          :param      painter | <QPainter>
                      rect    | <QRect>