From: Pascale Noyret Date: Mon, 7 Nov 2011 10:30:29 +0000 (+0000) Subject: bug 1751 X-Git-Tag: LOGILAB~292 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5aac910d880e685c14a2f89351b917ff8da5ea5b;p=tools%2Feficas.git bug 1751 --- diff --git a/InterfaceQT4/browser.py b/InterfaceQT4/browser.py index 1a97d5c7..7782eb1b 100644 --- a/InterfaceQT4/browser.py +++ b/InterfaceQT4/browser.py @@ -80,13 +80,11 @@ class JDCTree( QTreeWidget ): def handleOnItem(self,item,int): self.itemCourrant=item - #try : - if 1 : + try : fr = item.item.get_fr() if self.editor: self.editor.affiche_infos(QString.toUtf8(QString(fr))) - #except: - else: + except: pass item.affichePanneau() @@ -121,6 +119,7 @@ class JDCNode(QTreeWidgetItem): self.item.connect("supp" ,self.onSupp,()) self.item.connect("add" ,self.onAdd,()) self.state="" + def build_children(self,posInsertion=10000): @@ -340,9 +339,17 @@ class JDCNode(QTreeWidgetItem): labeltext,fonte,couleur = self.item.GetLabelText() self.setText(0, labeltext) + def update_node_label_in_blue(self): + if hasattr(self.appliEficas,'noeudColore'): + self.appliEficas.noeudColore.setTextColor( 0,Qt.black) + self.appliEficas.noeudColore.update_node_label() + self.setTextColor( 0,Qt.blue ) + labeltext,fonte,couleur = self.item.GetLabelText() + self.setText(0, labeltext) + self.appliEficas.noeudColore=self + def update_node_texte(self): """ Met a jour les noms des SD et valeurs des mots-cles """ - #print "NODE update_node_texte", self.item.GetLabelText() value = self.item.GetText() self.setText(1, value)