def paintEvent(self, event):
        """
        Runs the paint event for this item.
        """
        painter = QtGui.QPainter()
        painter.begin(self)
        try:
            h = self.height() - 1
            palette = self.palette()
            clr = palette.color(palette.WindowText)
            clr.setAlpha(100)
            painter.setPen(QtGui.QPen(clr))
            painter.fillRect(0, 0, self.width() - 1, self.height() - 1, palette.color(palette.Button))
            painter.drawLine(3, h, self.width() - 5, h)

            try:
                geom = self.currentItem().geometry()
                painter.setPen(QtGui.QPen(palette.color(palette.Window)))
                painter.drawLine(geom.left(), h, geom.right(), h)
            except AttributeError:
                painter

        finally:
            painter.end()