From: pascale.noyret Date: Fri, 5 May 2017 15:07:05 +0000 (+0200) Subject: anomalie 13688 X-Git-Tag: V8_3_0~28 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ddcc146bb0a7aaf229874bb1734a871d58058ef3;p=tools%2Feficas.git anomalie 13688 --- diff --git a/InterfaceQT4/monWidgetSimpBase.py b/InterfaceQT4/monWidgetSimpBase.py index 37b51296..78fc1a75 100644 --- a/InterfaceQT4/monWidgetSimpBase.py +++ b/InterfaceQT4/monWidgetSimpBase.py @@ -46,12 +46,18 @@ class MonWidgetSimpBase (Ui_WidgetSimpBase,Feuille): self.AAfficher=self.lineEditVal self.maCommande.listeAffichageWidget.append(self.lineEditVal) self.lineEditVal.focusInEvent=self.monFocusInEvent + self.lineEditVal.focusOutEvent=self.monFocusOutEvent def monFocusInEvent(self,event): self.editor.nodeEnCours = self QLineEdit.focusInEvent(self.lineEditVal,event) + def monFocusOutEvent(self,event): + if self.oldValeurTexte != self.lineEditVal.text(): + self.LEValeurPressed() + self.oldValeurTexte= self.lineEditVal.text() + QLineEdit.focusOutEvent(self.lineEditVal,event) #def showEvent(self, event): # if self.prendLeFocus==1 : @@ -79,6 +85,7 @@ class MonWidgetSimpBase (Ui_WidgetSimpBase,Feuille): # chaine=QString("").setNum(valeurTexte) #except : chaine=str(valeurTexte) + self.oldValeurTexte=chaine self.lineEditVal.setText(chaine)