def METHOD_NAME(self, painter):
    brush = QBrush(QColor(Qt.darkRed))
    pen = QPen(brush, 2, Qt.SolidLine)
    painter.setPen(pen)
    rect = self.boundingRect()
    if self.drop_indicator_position == QAbstractItemView.AboveItem:
        painter.drawLine(QLineF(rect.topLeft(), rect.topRight()))
    else:
        painter.drawLine(QLineF(rect.bottomLeft(), rect.bottomRight()))