replace the lostFocus signal from qt4 to editingFinished