def METHOD_NAME(self, event):
    QLineEdit.METHOD_NAME(self, event)
    if self.base_unit_func:
        panel = QStyleOptionFrame()
        self.initStyleOption(panel)
        textRect = self.style().subElementRect(QStyle.SE_LineEditContents, panel, self)
        textRect.adjust(2, 0, -10, 0)
        painter = QPainter(self)
        painter.setPen(self.help_palette.brush(QPalette.Disabled, QPalette.Text).color())
        painter.drawText(textRect, Qt.AlignRight | Qt.AlignVCenter, self.base_unit_func())