]> SALOME platform Git repositories - tools/eficas.git/commitdiff
Salome HOME
anomalie 13688
authorpascale.noyret <pascale.noyret@edf.fr>
Fri, 5 May 2017 15:07:05 +0000 (17:07 +0200)
committerpascale.noyret <pascale.noyret@edf.fr>
Fri, 5 May 2017 15:07:05 +0000 (17:07 +0200)
InterfaceQT4/monWidgetSimpBase.py

index 37b5129644e82a731e8eb296f599642f83b8995c..78fc1a7592d4e0c4d0261ab065339ecf3d044b9d 100644 (file)
@@ -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)