'Edit has finished; set value.'

def editingFinishedEvent(self):

    if (asUnicode(self.lineEdit().text()) == self.lastText):
        return
    try:
        val = self.interpret()
    except Exception:
        return
    if (val is False):
        return
    if (val == self.val):
        return
    self.setValue(val, delaySignal=False)
