|
|
@@ -79,7 +79,7 @@ class GraphicsObject(QGraphicsItemGroup):
|
|
|
|
|
|
def html(self):
|
|
|
return "[{}]<br/><b>{}</b>".format(self.obj.type_,
|
|
|
- self.obj.nom)
|
|
|
+ self.obj.name_)
|
|
|
|
|
|
def topAnchorCenter(self):
|
|
|
return self.mapToScene(QPointF(*self.topAnchorCoords))
|
|
|
@@ -391,7 +391,7 @@ class Viewer(QMainWindow):
|
|
|
topitem.addChild(item)
|
|
|
|
|
|
item = QTreeWidgetItem()
|
|
|
- item.setText(0, obj.nom)
|
|
|
+ item.setText(0, obj.name_)
|
|
|
item.setData(1, 0, index)
|
|
|
groupes[obj.type_].addChild(item)
|
|
|
|
|
|
@@ -450,7 +450,7 @@ class Viewer(QMainWindow):
|
|
|
|
|
|
def treeItemSelected(self, item):
|
|
|
index = item.data(1, 0)
|
|
|
- if not index:
|
|
|
+ if index is None:
|
|
|
return
|
|
|
obj = core.Analyse.objects[index]
|
|
|
self.maj_scene_with(obj)
|